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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
push edi
test eax, eax
je 0x47b760
push eax
call dword [0x4fa0b0]
add esp, 4
mov edi, dword [esi + 0x18]
cmp byte [edi + 9], 0
je 0x47b777
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x47b777
call fcn.00416df0
mov eax, dword [esi]
test eax, eax
je 0x47b78e
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47b78e
push eax
call dword [0x4fa0b0]
add esp, 4
mov ebx, dword [esi + 0x1c]
xor ecx, ecx
cmp ebx, ecx
je 0x47b7a5
cmp ebx, 5
je 0x47b7a5
cmp ebx, 6
jne 0x47bfda
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0x20], edx
mov edx, dword [esi + 4]
mov edx, dword [edx + 4]
mov edx, dword [edx]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], ecx
cmp dword [esi], ecx
je 0x47b7d8
mov edx, dword [eax + 4]
cmp byte [edx + 0x14], 2
jne 0x47b7d8
mov ebx, 5
jmp 0x47b9bb
xor ebx, ebx
cmp byte [eax + 8], cl
jne 0x47b9bb
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ecx
cmp byte [eax + 9], cl
je 0x47b7ff
inc dword [eax + 0xc]
cmp byte [eax + 0xa], cl
jne 0x47b7ff
mov edi, eax
call fcn.00416df0
mov eax, edi
mov al, byte [eax + 8]
cmp al, 2
je 0x47b99b
cmp al, 1
je 0x47b99b
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
and eax, 0x2000000
xor ecx, ecx
xor edi, edi
or eax, ecx
je 0x47b837
mov eax, dword [ebx]
cmp byte [eax + 0xe], cl
jne 0x47b837
mov ecx, 0xfffe
and word [ebx + 0x16], cx
movzx ecx, word [ebx + 0x16]
test cl, cl
jns 0x47b852
mov eax, dword [ebx + 0x4c]
cmp dword [eax], edi
je 0x47b852
mov dword [ebp - 4], 0x106
jmp 0x47b99b
cmp byte [edx + 9], 0
mov eax, dword [edx + 4]
je 0x47b896
cmp dword [eax + 0x4c], edx
je 0x47b872
test byte [eax + 0x16], 0x40
je 0x47b872
mov dword [ebp - 4], 0x106
jmp 0x47b99b
mov eax, dword [eax + 0x48]
cmp eax, edi
je 0x47b896
mov esi, 1
mov edi, edi
cmp dword [eax], edx
je 0x47b88f
cmp dword [eax + 4], esi
jne 0x47b88f
cmp byte [eax + 8], 1
jne 0x47b846
mov eax, dword [eax + 0xc]
cmp eax, edi
jne 0x47b880
mov eax, ecx
and eax, 0xffef
mov dword [ebp - 4], edi
mov word [ebx + 0x16], ax
cmp dword [ebx + 0x2c], edi
jne 0x47b8b0
or eax, 0x10
mov word [ebx + 0x16], ax
cmp dword [ebx + 0xc], 0
jne 0x47b8c8
push ebx
call fcn.00470f50
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x47b8b0
jmp 0x47b8ce
cmp dword [ebp - 4], 0
je 0x47b8fe
cmp byte [ebx + 0x14], 0
jne 0x47b8fe
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47b8fe
mov dword [ebx + 0xc], 0
mov eax, dword [eax + 0x48]
mov esi, dword [eax + 0x14]
call fcn.00414640
mov ecx, dword [esi + 0xd4]
cmp dword [ecx + 0xc], 0
jne 0x47b8fe
call fcn.00433b80
cmp byte [ebp - 4], 5
jne 0x47b965
cmp byte [ebx + 0x14], 0
jne 0x47b965
mov edi, dword [ebx + 4]
mov eax, dword [edi + 0x194]
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c]
test eax, eax
je 0x47b965
mov ecx, dword [edi + 0x19c]
test ecx, ecx
js 0x47b965
cmp byte [edi + 0x1a0], 0
je 0x47b93f
push edx
push ecx
mov ecx, dword [edi + 0x198]
push ecx
call eax
add esp, 0xc
jmp 0x47b94c
mov edx, dword [edi + 0x198]
push ecx
push edx
call eax
add esp, 8
test eax, eax
je 0x47b95b
inc dword [edi + 0x19c]
jmp 0x47b8b0
mov dword [edi + 0x19c], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x47b99b
mov eax, dword [ebp - 8]
cmp byte [eax + 8], 0
jne 0x47b98d
inc dword [ebx + 0x28]
cmp byte [eax + 9], 0
je 0x47b98d
mov byte [eax + 0x28], 1
mov ecx, dword [ebx + 0x48]
lea edx, [eax + 0x20]
mov dword [eax + 0x2c], ecx
mov dword [ebx + 0x48], edx
mov byte [eax + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x47b99b
mov byte [ebx + 0x14], 1
mov esi, dword [ebp - 8]
cmp byte [esi + 9], 0
je 0x47b9ae
dec dword [esi + 0xc]
jne 0x47b9ae
call fcn.00416dd0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], 1
cmp dword [esi + 0xc], 0
jne 0x47b9e6
test ebx, ebx
jne 0x47ba0f
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x20]
push ebx
push 0xffffffffffffffff
push edx
call fcn.00463920
add esp, 0xc
cmp eax, 7
jne 0x47b9ea
mov ebx, eax
jmp 0x47ba0f
test ebx, ebx
jne 0x47ba0f
cmp dword [esi + 0xc], 0
jne 0x47ba0f
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
push eax
push 2
push ecx
call fcn.00471210
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x47ba0f
mov dword [esi + 0xc], 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
mov ecx, dword [edx + 4]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edi
mov dword [ebp - 0x28], eax
test ebx, ebx
jne 0x47ba40
cmp eax, 5
jne 0x47ba40
cmp edx, edi
je 0x47ba40
lea ebx, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x47ba59
cmp dword [ebp - 0x10], eax
jge 0x47bac7
mov edi, dword [esi + 0x10]
cmp edi, dword [ebp - 4]
ja 0x47bac7
test ebx, ebx
jne 0x47bb09
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x4fa170]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x47baba
mov eax, dword [ebp - 0x20]
push 2
lea edx, [ebp - 0x18]
push edx
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x47baba
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
push ebx
push eax
push edi
push esi
call fcn.00434850
mov ebx, eax
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
je 0x47baba
call fcn.004161f0
mov eax, 1
add dword [esi + 0x10], eax
add dword [ebp - 0x10], eax
jmp 0x47ba4d
test ebx, ebx
jne 0x47bb09
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x10]
mov edx, eax
sub edx, ecx
inc edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edx
cmp ecx, eax
ja 0x47bb18
cmp dword [esi + 0x28], ebx
jne 0x47bee5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov edx, dword [eax + 0x58]
mov dword [ecx + 0x2c], edx
mov dword [eax + 0x58], ecx
mov dword [ecx + 0x28], 1
jmp 0x47bee5
cmp ebx, 0x65
jne 0x47bee5
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x47bb6e
mov edi, dword [esi + 4]
cmp byte [edi + 9], al
je 0x47bb31
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x47bb31
call fcn.00416df0
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
mov ecx, dword [edi + 4]
push ecx
call fcn.004516c0
add esp, 4
cmp byte [edi + 9], 0
mov ebx, eax
je 0x47bb5e
dec dword [edi + 0xc]
jne 0x47bb5e
mov esi, edi
call fcn.00416dd0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x47bb6e
cmp ebx, 0x65
jne 0x47bb83
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
inc edx
push edx
push 1
push eax
call fcn.00434780
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x47bee5
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x47bb99
call fcn.0045dd70
cmp dword [ebp - 0x28], 5
jne 0x47bbb6
mov eax, dword [esi + 4]
push 2
call fcn.00471610
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47bee5
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jge 0x47bbed
mov eax, dword [ebp - 8]
cdq
idiv ecx
mov edx, dword [ebp - 4]
mov esi, eax
lea eax, [esi + edx - 1]
cdq
idiv esi
mov edi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov esi, dword [edx + 4]
mov eax, dword [0x4fa170]
xor edx, edx
div dword [esi + 0x20]
inc eax
cmp edi, eax
jne 0x47bbf9
dec edi
jmp 0x47bbf9
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov edi, eax
imul edi, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jge 0x47be46
mov eax, ecx
cdq
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, edx
push esi
cdq
push ecx
push edx
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], esi
call fcn.004b5250
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x30], edx
mov edx, dword [ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], edx
cmp edi, dword [ebp - 0x28]
ja 0x47bc87
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov esi, dword [edx + 4]
mov eax, dword [0x4fa170]
xor edx, edx
div dword [esi + 0x20]
inc eax
cmp edi, eax
je 0x47bc80
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push ecx
mov ecx, dword [ecx + 0xcc]
call ecx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x47bc7d
mov esi, dword [ebp - 0x18]
call fcn.00434050
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47bc7d
call fcn.004161f0
mov ecx, dword [ebp - 0xc]
inc edi
test ebx, ebx
je 0x47bc31
jmp 0x47bc9a
test ebx, ebx
jne 0x47bc9a
push 1
push ebx
mov eax, ecx
call fcn.0045bfd0
add esp, 8
mov ebx, eax
mov edx, dword [ebp - 8]
mov ecx, dword [0x4fa170]
mov esi, dword [ebp - 0x30]
lea eax, [ecx + edx]
cdq
cmp edx, esi
jg 0x47bcba
jl 0x47bcb5
cmp eax, dword [ebp - 0x34]
jae 0x47bcba
mov dword [ebp - 0x28], edx
jmp 0x47bcc0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + edx]
cdq
mov edi, eax
mov esi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
test ebx, ebx
jne 0x47bee5
lea esp, [esp]
cmp esi, dword [ebp - 0x28]
jg 0x47bdb7
jl 0x47bcf4
cmp edi, dword [ebp - 0x2c]
jae 0x47bdb7
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push esi
push edi
mov dword [ebp - 0x10], 0
call fcn.004b4be0
inc eax
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x47bd44
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ecx]
push esi
push edi
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
test eax, eax
je 0x47bd9e
test byte [eax + 0x1c], 0x20
je 0x47bd99
mov eax, dword [eax + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov esi, dword [edi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004b5250
push edx
mov edx, dword [esi + 0x48]
push eax
push edi
call edx
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x47bd9e
call fcn.00414640
add edi, dword [ebp - 0x3c]
adc esi, dword [ebp - 0x38]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
test ebx, ebx
je 0x47bce0
jmp 0x47bee5
test ebx, ebx
jne 0x47bee5
mov esi, dword [ebp - 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [ebp - 0x3c]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x47bdf7
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x38], ecx
jl 0x47bdf7
jg 0x47bde7
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x34]
jbe 0x47bdf7
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x34]
push ecx
push esi
call edx
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x47bee5
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x47be1e
push ebx
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
cmp eax, 0xc
jne 0x47be22
xor eax, eax
jmp 0x47be26
test eax, eax
jne 0x47be58
cmp byte [esi + 7], 0
jne 0x47be58
movzx eax, byte [esi + 0xa]
mov ecx, dword [esi + 0x3c]
test eax, eax
je 0x47be42
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
jmp 0x47be55
xor eax, eax
jmp 0x47be58
mov eax, dword [ebp - 0xc]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.0045bfd0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x47bee5
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x47bee0
cmp byte [edi + 9], al
je 0x47be7f
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x47be7f
call fcn.00416df0
cmp byte [edi + 8], 2
jne 0x47bec9
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
call fcn.00462ce0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x47beaf
cmp byte [edi + 9], 0
je 0x47beab
dec dword [edi + 0xc]
jne 0x47beab
mov esi, edi
call fcn.00416dd0
mov eax, dword [ebp - 0x28]
mov ebx, eax
jmp 0x47bee5
dec dword [edi + 0x14]
mov edx, dword [ebx + 0x3c]
push edx
mov byte [ebx + 0x14], 1
call fcn.004144a0
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.00434440
cmp byte [edi + 9], 0
je 0x47bee0
dec dword [edi + 0xc]
jne 0x47bee0
mov esi, edi
call fcn.00416dd0
mov ebx, 0x65
cmp dword [ebp - 0x24], 0
je 0x47bfc5
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
cmp byte [esi + 8], 2
jne 0x47bf5a
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
je 0x47bf1a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x47bf1a
mov edi, esi
call fcn.00416df0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x11], 0
je 0x47bf2e
mov edi, dword [ebp - 0x14]
call fcn.0047b390
test eax, eax
jne 0x47bf4a
mov eax, edi
cmp byte [eax + 0x13], 0
je 0x47bf3c
mov ecx, dword [eax]
mov edx, dword [eax + 0x2c]
mov dword [ecx + 0x18], edx
mov eax, dword [eax]
push 0
push 0
call fcn.0045bfd0
add esp, 8
cmp byte [esi + 9], 0
je 0x47bf5a
dec dword [esi + 0xc]
jne 0x47bf5a
call fcn.00416dd0
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
cmp byte [edi + 8], 0
je 0x47bfc5
cmp byte [edi + 9], 0
je 0x47bf7a
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x47bf7a
call fcn.00416df0
cmp byte [edi + 8], 2
jne 0x47bfae
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov dword [ebp - 0x28], eax
call fcn.00462ce0
test eax, eax
jne 0x47bfb3
dec dword [edi + 0x14]
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 0x3c]
push ecx
mov byte [esi + 0x14], 1
call fcn.004144a0
add esp, 4
mov dword [esi + 0x3c], 0
call fcn.00434440
cmp byte [edi + 9], 0
je 0x47bfc5
dec dword [edi + 0xc]
jne 0x47bfc5
mov esi, edi
call fcn.00416dd0
cmp ebx, 0xc0a
jne 0x47bfd2
mov ebx, 7
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ebx
mov esi, edx
mov eax, dword [esi]
test eax, eax
je 0x47bff1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47bff1
push eax
call dword [0x4fa0b8]
add esp, 4
mov eax, dword [esi + 0x18]
cmp byte [eax + 9], 0
je 0x47c009
dec dword [eax + 0xc]
jne 0x47c009
mov esi, eax
call fcn.00416dd0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47c01d
push eax
call dword [0x4fa0b8]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret