Function at 0x47ede0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
mov ebx, ecx
xor eax, eax
push ebp
push esi
xor edx, edx
mov dword [esp + 0x28], ebx
or esi, 0xffffffff
mov dword [esp + 0x10], edx
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
cmp dword [ebx + 0x4528], eax
jbe 0x47f0b7
lea ebp, [ebx + 0x452c]
lea edi, [ebx + 0x52c]
jmp 0x47ee20
mov dword [esp + 0x1c], ebp
cmp esi, 0xffffffff
je 0x47ee96
mov ecx, dword [edi]
sub ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x47ee96
lea eax, [ecx + esi]
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x145c8], eax
jae 0x47ee75
push eax
push dword [ebx + 0x145c4]
call fcn.00524ab2
add esp, 8
mov dword [ebx + 0x145c4], eax
test eax, eax
jne 0x47ee67
mov ecx, 0x5b77e4
call fcn.0046e5a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x145c8], eax
mov eax, dword [esp + 0x74]
push ecx
mov eax, dword [eax]
add eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x145c4]
add eax, esi
push eax
call fcn.0051ff80
mov esi, dword [esp + 0x2c]
add esp, 0xc
push 0x40
push 0
push ebp
call fcn.00520500
mov ecx, dword [esp + 0x80]
add esp, 0xc
mov eax, dword [edi]
mov edx, dword [edi - 4]
mov ecx, dword [ecx]
add ecx, eax
add eax, dword [esp + 0x7c]
and eax, dword [ebx + 0x504]
mov dword [esp + 0x18], ecx
cmp edx, 6
ja case.0x47eec6.3
jmp dword [edx*4 + 0x47f4d0]
cmp edx, 2
sete al
movzx eax, al
push eax
mov eax, dword [ebx + 0x16608]
add eax, dword [edi]
push eax
push ebp
push dword [edi + 4]
push ecx
mov ecx, ebx
call fcn.00480cd0
jmp 0x47ef36
push eax
push dword [edi + 8]
push ebp
push dword [edi + 4]
push ecx
mov ecx, ebx
call fcn.004808c0
jmp 0x47ef36
push eax
push ebp
push dword [edi + 4]
push ecx
mov ecx, ebx
call fcn.00480fc0
jmp 0x47ef36
push eax
push dword [edi + 8]
push ebp
push dword [edi + 4]
push ecx
mov ecx, ebx
call fcn.00480bd0
jmp 0x47ef36
mov eax, dword [ebx + 0x16608]
add eax, dword [edi]
push eax
push ebp
push dword [edi + 4]
push ecx
mov ecx, ebx
call fcn.00480dc0
mov ecx, dword [esp + 0x18]
cmp esi, 0xffffffff
je 0x47ef44
add dword [ebp + 0x34], esi
jmp 0x47ef49
mov eax, dword [edi]
add dword [ebp + 0x34], eax
mov edx, dword [esp + 0x1c]
add ebp, 0x40
inc dword [esp + 0x14]
cmp dword [edx + 0x3c], ecx
jne 0x47ef64
cmp esi, 0xffffffff
je 0x47f01c
jmp 0x47efbc
cmp esi, 0xffffffff
jne 0x47efbc
mov esi, dword [edi]
test esi, esi
je 0x47efba
cmp dword [ebx + 0x145c8], esi
jae 0x47efa0
push esi
push dword [ebx + 0x145c4]
call fcn.00524ab2
add esp, 8
mov dword [ebx + 0x145c4], eax
test eax, eax
jne 0x47ef9a
mov ecx, 0x5b77e4
call fcn.0046e5a0
mov dword [ebx + 0x145c8], esi
mov eax, dword [esp + 0x74]
push dword [edi]
push dword [eax]
push dword [ebx + 0x145c4]
call fcn.0051ff80
mov edx, dword [esp + 0x28]
add esp, 0xc
mov esi, dword [edi]
mov eax, dword [edx + 0x38]
add eax, esi
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x145c8], eax
jae 0x47effe
push eax
push dword [ebx + 0x145c4]
call fcn.00524ab2
add esp, 8
mov dword [ebx + 0x145c4], eax
test eax, eax
jne 0x47eff0
mov ecx, 0x5b77e4
call fcn.0046e5a0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x145c8], eax
push dword [edx + 0x38]
mov eax, dword [ebx + 0x145c4]
push dword [edx + 0x3c]
add eax, esi
push eax
call fcn.0051ff80
mov ecx, dword [esp + 0x28]
add esp, 0xc
add esi, dword [ecx + 0x38]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x24]
add eax, dword [edi]
inc edx
add edi, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
cmp edx, dword [ebx + 0x4528]
jb 0x47ee20
cmp esi, 0xffffffff
je 0x47f0b3
mov edi, dword [esp + 0x78]
mov edi, dword [edi]
sub edi, eax
test edi, edi
jle 0x47f0a1
lea ebp, [edi + esi]
cmp dword [ebx + 0x145c8], ebp
jae 0x47f082
push ebp
push dword [ebx + 0x145c4]
call fcn.00524ab2
add esp, 8
mov dword [ebx + 0x145c4], eax
test eax, eax
jne 0x47f07c
mov ecx, 0x5b77e4
call fcn.0046e5a0
mov dword [ebx + 0x145c8], ebp
mov eax, dword [esp + 0x74]
push edi
mov eax, dword [eax]
add eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x145c4]
add eax, esi
push eax
call fcn.0051ff80
add esp, 0xc
mov esi, ebp
mov ecx, dword [esp + 0x74]
mov eax, dword [ebx + 0x145c4]
mov dword [ecx], eax
mov eax, dword [esp + 0x78]
mov dword [eax], esi
mov edx, dword [esp + 0x14]
lea ecx, [edx - 1]
xor esi, esi
mov dword [esp + 0x1c], ecx
test ecx, ecx
jle 0x47f187
mov eax, ecx
lea ebx, [ebx]
lea ecx, [esi + 1]
mov edi, esi
cmp ecx, edx
jge 0x47f17e
mov ebp, esi
lea edx, [ebx + 0x4564]
shl ebp, 6
mov eax, ecx
add ebp, 0x452c
shl eax, 6
add ebp, ebx
add edx, eax
mov ebx, dword [ebp + 0x34]
lea ebx, [ebx]
cmp dword [edx - 4], ebx
jne 0x47f118
mov eax, dword [edx]
cmp eax, dword [ebp + 0x38]
jne 0x47f118
mov edi, ecx
add edx, 0x40
inc ecx
cmp ecx, dword [esp + 0x14]
jl 0x47f100
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
cmp edi, esi
je 0x47f176
mov eax, edi
sub eax, esi
inc eax
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x47f174
mov ecx, edi
lea edx, [ebx + 0x452c]
shl ecx, 6
add edx, ecx
nop
mov esi, ebp
lea edi, [esp + 0x30]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, edx
mov edi, ebp
mov ecx, 0x10
add ebp, 0x40
rep movsd dword es:[edi], dword [esi]
mov edi, edx
lea esi, [esp + 0x30]
mov ecx, 0x10
sub edx, 0x40
rep movsd dword es:[edi], dword [esi]
sub eax, 1
jne 0x47f140
mov edi, dword [esp + 0x24]
mov esi, edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x47f0d0
test edx, edx
jle 0x47f4c4
lea ebp, [ebx + 0x145cc]
lea esi, [ebx + 0x452c]
jmp 0x47f1a0
mov edi, dword [ebx + 0x145ac]
xor eax, eax
mov byte [esp + 0x13], 1
test edi, edi
jle 0x47f1d5
mov edx, dword [esi]
lea ecx, [ebx + 0x1452c]
lea esp, [esp]
cmp dword [ecx], edx
je 0x47f1ce
inc eax
add ecx, 4
cmp eax, edi
jl 0x47f1c0
jmp 0x47f1d5
mov edi, eax
mov byte [esp + 0x13], 0
mov ecx, ebp
call fcn.004883f0
xor al, al
mov byte [esp + 0x12], al
cmp byte [ebx + 0x145b4], al
je 0x47f229
push 0
push 2
mov ecx, ebp
mov byte [esp + 0x1a], 0x80
call fcn.00488680
push 0
push 4
mov ecx, ebp
call fcn.00488680
mov byte [esp + 0x13], 1
xor edi, edi
mov dword [ebx + 0x145ac], 0
mov dword [ebx + 0x145b0], 0
mov byte [ebx + 0x145b4], 0
jmp 0x47f230
cmp byte [esp + 0x13], 0
je 0x47f249
mov ecx, dword [ebx + 0x145ac]
mov eax, dword [esi]
mov dword [ebx + ecx*4 + 0x1452c], eax
inc dword [ebx + 0x145ac]
mov al, byte [esp + 0x12]
cmp edi, dword [ebx + 0x145b0]
je 0x47f262
or al, 0x80
mov ecx, ebx
mov byte [esp + 0x12], al
lea eax, [edi + 1]
push eax
call fcn.004842f0
mov dword [ebx + 0x145b0], edi
mov eax, dword [esi + 0x34]
sub eax, dword [ebx + 0x165fc]
add eax, dword [ebx + 0x50c]
and eax, dword [ebx + 0x504]
cmp eax, 0x102
jb 0x47f28e
or byte [esp + 0x12], 0x40
sub eax, 0x102
push eax
mov ecx, ebx
call fcn.004842f0
cmp byte [esp + 0x13], 0
jne 0x47f2a9
mov eax, dword [ebx + edi*4 + 0x1456c]
cmp eax, dword [esi + 0x38]
je 0x47f2b8
push dword [esi + 0x38]
or byte [esp + 0x16], 0x20
mov ecx, ebx
call fcn.004842f0
mov eax, dword [esi + 0x38]
mov dword [ebx + edi*4 + 0x1456c], eax
mov al, byte [esi + 4]
test al, al
je 0x47f316
or byte [esp + 0x12], 0x10
mov ecx, ebp
movzx eax, al
push eax
push 7
call fcn.00488680
mov eax, 1
lea edi, [esi + 8]
rol eax, 0
mov ebp, 7
mov dword [esp + 0x24], eax
nop
test byte [esi + 4], al
je 0x47f302
push dword [edi]
mov ecx, ebx
call fcn.004842f0
mov eax, dword [esp + 0x24]
rol eax, 1
add edi, 4
mov dword [esp + 0x24], eax
sub ebp, 1
jne 0x47f2f0
lea ebp, [ebx + 0x145cc]
cmp byte [esp + 0x13], 0
je 0x47f347
push dword [esi + 0x28]
mov ecx, ebx
call fcn.004842f0
xor edi, edi
cmp dword [esi + 0x28], edi
jle 0x47f347
mov edi, edi
mov eax, dword [esi + 0x24]
mov ecx, ebp
movzx eax, byte [eax + edi]
push eax
push 8
call fcn.00488680
inc edi
cmp edi, dword [esi + 0x28]
jl 0x47f330
mov eax, dword [esi + 0x30]
test eax, eax
je 0x47f379
or byte [esp + 0x12], 8
mov ecx, ebx
push eax
call fcn.004842f0
xor edi, edi
cmp dword [esi + 0x30], edi
jle 0x47f379
mov eax, dword [esi + 0x2c]
mov ecx, ebp
movzx eax, byte [eax + edi]
push eax
push 8
call fcn.00488680
inc edi
cmp edi, dword [esi + 0x30]
jl 0x47f362
mov ecx, ebp
call fcn.00488310
mov eax, dword [ebx + 0x145e0]
mov dword [esp + 0x18], eax
cmp eax, 6
ja 0x47f394
lea ecx, [eax - 1]
jmp 0x47f39f
cmp eax, 0x106
seta cl
add cl, 6
or cl, byte [esp + 0x12]
cmp dword [ebx + 0x51c], 2
mov byte [esp + 0x13], cl
jne 0x47f43b
push dword [ebx + 0x1b208]
lea ebp, [ebx + 0x16614]
mov ecx, ebp
call fcn.004a3000
push 3
mov ecx, ebp
call fcn.004a3000
movzx eax, byte [esp + 0x13]
mov ecx, ebp
push eax
call fcn.004a3000
mov eax, dword [esp + 0x18]
cmp eax, 6
jbe 0x47f410
mov ecx, ebp
cmp eax, 0x106
ja 0x47f3f4
add eax, 0xfffffff9
jmp 0x47f406
shr eax, 8
push eax
call fcn.004a3000
mov edx, dword [esp + 0x18]
mov ecx, ebp
movzx eax, dl
push eax
call fcn.004a3000
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
je 0x47f4b0
lea ebx, [ebx]
mov eax, dword [ebx + 0x145dc]
mov ecx, ebp
movzx eax, byte [eax + edi]
push eax
call fcn.004a3000
inc edi
cmp edi, dword [esp + 0x18]
jb 0x47f420
jmp 0x47f4b0
add eax, 0x14
lea edi, [ebx + 0x1b340]
push eax
mov ecx, edi
call fcn.00464cb0
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
mov dl, byte [esp + 0x13]
mov byte [eax + ecx*8 + 1], dl
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*8], 7
mov dword [eax + ecx*8 + 4], edx
inc dword [edi + 0x10]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0xc]
jb 0x47f478
mov ecx, edi
call fcn.004648f0
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jbe 0x47f4b0
mov eax, dword [ebx + 0x145dc]
mov ecx, dword [edi + 0x10]
mov dl, byte [eax + ebp]
mov eax, dword [edi + 8]
mov byte [eax + ecx*8], 8
mov byte [eax + ecx*8 + 4], dl
inc dword [edi + 0x10]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0xc]
jb 0x47f4a9
mov ecx, edi
call fcn.004648f0
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x47f480
add esi, 0x40
lea ebp, [ebx + 0x145cc]
sub dword [esp + 0x14], 1
jne 0x47f1a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc