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

Disassembly:
sub esp, 0xac
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb8]
push ebp
mov ebp, dword [esp + 0xc4]
cmp dword [ebp], 0
push edi
mov edi, ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jg 0x47b012
test byte [esp + 0xc4], 1
mov dword [esp + 0x24], 3
je 0x47a748
mov dword [esp + 0x24], 7
push ebx
push esi
lea ecx, [esp + 0x70]
call fcn.00476570
lea ecx, [esp + 0x94]
call fcn.00476570
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x2b], al
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
xor bl, bl
xor esi, esi
mov ecx, edi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
call edx
jmp 0x47a790
mov ecx, dword [esp + 0x24]
call fcn.00485080
test al, al
jne 0x47af6e
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x2c]
push eax
push ecx
xor edi, edi
call fcn.00479270
add esp, 8
test al, al
je 0x47a7c4
mov bl, 2
jmp 0x47a954
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.004850b0
mov ecx, dword [esp + 0x2c]
push ebp
lea eax, [esp + 0x15]
push eax
push ecx
mov ecx, esi
call fcn.00485270
cmp dword [ebp], 0
mov esi, eax
jg 0x47af1f
cmp esi, 0x5b
jne 0x47a90e
cmp byte [esp + 0x11], 0
jne 0x47a90e
cmp byte [esp + 0x13], 1
jne 0x47a822
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
call fcn.004850d0
mov bl, 1
jmp 0x47a950
mov al, byte [esp + 0x74]
test al, al
mov byte [esp + 0x13], 1
mov dword [esp + 0x34], 0x5b
movsx eax, al
jge 0x47a83e
mov eax, dword [esp + 0x7c]
push 1
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea ecx, [esp + 0x84]
call fcn.00476c90
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.004850b0
mov ecx, dword [esp + 0x2c]
push ebp
lea eax, [esp + 0x15]
push eax
push ecx
mov ecx, edi
call fcn.00485270
cmp dword [ebp], 0
mov esi, eax
jg 0x47af1f
cmp esi, 0x5e
jne 0x47a8ea
cmp byte [esp + 0x11], 0
jne 0x47a8f9
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x74]
test al, al
mov byte [esp + 0x2b], 1
movsx eax, al
jge 0x47a8a8
mov eax, dword [esp + 0x7c]
push 1
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push eax
lea ecx, [esp + 0x84]
call fcn.00476c90
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.004850b0
mov edx, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x15]
push ecx
push edx
mov ecx, edi
call fcn.00485270
cmp dword [ebp], 0
mov esi, eax
jg 0x47af1f
cmp esi, 0x2d
jne 0x47a8f9
mov byte [esp + 0x11], 1
jmp case.0x47aaf3.37
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.004850d0
mov esi, dword [esp + 0x14]
jmp 0x47a790
cmp dword [esp + 0x38], 0
je 0x47aaca
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push esi
call eax
test eax, eax
je 0x47aaca
push 0
push 0x4fbfac
push 0x4fbf1c
push 0
push eax
call fcn.0049e5f6
add esp, 0x14
test eax, eax
je case.0x47aaf3.94
mov edi, eax
mov bl, 3
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x12], 1
jne 0x47a996
cmp word [esp + 0x20], 0
jne 0x47af38
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push eax
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0047ca10
add esp, 0xc
mov dword [esp + 0x20], 0
jmp 0x47a9d4
mov eax, dword [esp + 0x20]
cmp ax, 0x2d
je 0x47a9a6
cmp ax, 0x26
jne 0x47a9d4
movzx eax, ax
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x74]
test al, al
movsx eax, al
jge 0x47a9bc
mov eax, dword [esp + 0x7c]
push 1
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea ecx, [esp + 0x84]
call fcn.00476c90
test edi, edi
jne 0x47aa05
test esi, esi
jne 0x47aa03
push 0x34
call fcn.004773b0
add esp, 4
test eax, eax
je 0x47af56
mov ecx, eax
call fcn.0047dfc0
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x47af56
mov edi, esi
movsx eax, bl
sub eax, 1
je 0x47aa50
sub eax, 1
je 0x47aa26
sub eax, 1
jne 0x47aa6f
push eax
lea edx, [esp + 0x74]
push edx
mov ecx, edi
call fcn.0047e8f0
jmp 0x47aa6f
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00485210
push ebp
lea ecx, [esp + 0x74]
push ecx
push ebx
mov ecx, edi
call fcn.0047a600
cmp dword [ebp], 0
jg 0x47af3f
jmp 0x47aa6f
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x38]
push ebp
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x78]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0047a6e0
cmp byte [esp + 0x13], 0
mov byte [esp + 0x1f], 1
je 0x47af62
movzx eax, word [esp + 0x20]
test eax, eax
je 0x47aaa8
cmp eax, 0x26
je 0x47aa9d
cmp eax, 0x2d
jne 0x47aab4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
jmp 0x47aab1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
jmp 0x47aab1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
push edi
call edx
mov byte [esp + 0x12], 2
mov bl, byte [esp + 0x12]
mov dword [esp + 0x20], 0
jmp 0x47ad08
cmp byte [esp + 0x13], 0
je case.0x47aaf3.94
cmp byte [esp + 0x11], 0
jne case.0x47aaf3.37
lea eax, [esi - 0x24]
cmp eax, 0x57
ja case.0x47aaf3.37
movzx eax, byte [eax + 0x47b048]
jmp dword [eax*4 + 0x47b02c]
cmp word [esp + 0x20], 0
jne case.0x47aaf3.94
test bl, bl
je 0x47ae52
movzx ecx, si
mov dword [esp + 0x20], ecx
jmp 0x47ad08
cmp bl, 2
jne case.0x47aaf3.94
cmp word [esp + 0x20], 0
jne case.0x47aaf3.94
movzx edx, si
mov dword [esp + 0x20], edx
jmp 0x47ad08
cmp word [esp + 0x20], 0
jne case.0x47aaf3.94
cmp bl, 1
jne 0x47ab6d
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push esi
push esi
call edx
push 0
lea eax, [esp + 0x74]
push esi
push eax
call fcn.0047ca10
add esp, 0xc
mov cl, byte [esp + 0x99]
mov byte [esp + 0x12], 0
test cl, 1
je 0x47ab8c
lea ecx, [esp + 0x94]
call fcn.004761a0
jmp 0x47abbd
mov al, byte [esp + 0x98]
test al, al
movsx eax, al
jge 0x47aba1
mov eax, dword [esp + 0xa0]
test eax, eax
jbe 0x47abbd
mov byte [esp + 0x98], 0
test cl, 8
je 0x47abbd
mov dword [esp + 0xa8], 0
mov esi, dword [esp + 0x24]
mov ecx, esi
xor bl, bl
call fcn.00485080
test al, al
jne 0x47ac12
mov edi, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x15]
push ecx
push edi
mov ecx, esi
call fcn.00485270
cmp dword [ebp], 0
jg 0x47af1f
cmp eax, 0x7d
jne 0x47abf6
cmp byte [esp + 0x11], 0
je 0x47ac10
push eax
lea ecx, [esp + 0x98]
call fcn.004744a0
mov ecx, esi
call fcn.00485080
test al, al
je 0x47abd2
jmp 0x47ac12
mov bl, 1
mov al, byte [esp + 0x98]
test al, al
movsx eax, al
jge 0x47ac27
mov eax, dword [esp + 0xa0]
cmp eax, 1
jl case.0x47aaf3.94
test bl, bl
je case.0x47aaf3.94
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x94]
push edx
call fcn.0047e490
push 0x7b
lea ecx, [esp + 0x74]
call fcn.00478ec0
push 0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.0047dc40
add esp, 0xc
push 0x7d
lea ecx, [esp + 0x74]
call fcn.00478ec0
mov bl, byte [esp + 0x12]
jmp 0x47ad08
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.004850b0
mov ecx, dword [esp + 0x2c]
push ebp
lea eax, [esp + 0x15]
push eax
push ecx
mov ecx, edi
call fcn.00485270
cmp dword [ebp], 0
jg 0x47af1f
cmp eax, 0x5d
jne 0x47acbb
cmp byte [esp + 0x11], 0
jne 0x47acbb
mov al, 1
jmp 0x47acbd
xor al, al
cmp dword [esp + 0x38], 0
jne 0x47aebb
test al, al
jne 0x47aebf
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov esi, 0x24
call fcn.004850d0
movsx eax, bl
sub eax, 0
je 0x47acfe
sub eax, 1
je 0x47ad1c
sub eax, 1
jne 0x47ad08
cmp word [esp + 0x20], ax
jne case.0x47aaf3.94
mov bl, 1
mov dword [esp + 0x30], esi
mov byte [esp + 0x12], bl
cmp byte [esp + 0x13], 2
je 0x47af75
mov esi, dword [esp + 0x14]
jmp 0x47a790
mov edi, 0x2d
cmp word [esp + 0x20], di
jne 0x47ad9e
mov ebx, dword [esp + 0x30]
cmp ebx, esi
jge case.0x47aaf3.94
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push esi
push ebx
call edx
push 0
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.0047ca10
mov al, byte [esp + 0x80]
add esp, 0xc
test al, al
mov dword [esp + 0x34], edi
movsx eax, al
jge 0x47ad67
mov eax, dword [esp + 0x7c]
push 1
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea ecx, [esp + 0x84]
call fcn.00476c90
push 0
lea edx, [esp + 0x74]
push esi
push edx
call fcn.0047ca10
add esp, 0xc
xor bl, bl
mov dword [esp + 0x20], 0
jmp 0x47ad04
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push edi
push edi
call edx
push 0
lea eax, [esp + 0x74]
push edi
push eax
call fcn.0047ca10
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x47ad08
mov edi, dword [esp + 0x18]
cmp bl, 1
jne 0x47adf0
mov esi, dword [esp + 0x30]
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push esi
push esi
mov ecx, edi
call eax
push 0
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.0047ca10
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp ax, 0x2d
jne 0x47ae14
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push 0x2d
push 0x2d
mov ecx, edi
call eax
push 0x2d
lea ecx, [esp + 0x74]
call fcn.00478ec0
jmp 0x47ae1e
cmp ax, 0x26
je case.0x47aaf3.94
mov al, byte [esp + 0x74]
test al, al
mov dword [esp + 0x34], 0x5d
movsx eax, al
jge 0x47ae35
mov eax, dword [esp + 0x7c]
push 1
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea ecx, [esp + 0x84]
call fcn.00476c90
jmp 0x47af75
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push esi
push esi
call eax
mov edx, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00485270
cmp dword [ebp], 0
jg 0x47af1f
cmp eax, 0x5d
jne case.0x47aaf3.94
cmp byte [esp + 0x11], 0
jne case.0x47aaf3.94
push 0x4e7c40
lea ecx, [esp + 0x50]
call fcn.004770c0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x74]
call fcn.00477290
lea ecx, [esp + 0x4c]
call fcn.00476020
jmp 0x47af75
test al, al
je case.0x47aaf3.94
cmp word [esp + 0x20], 0
jne case.0x47aaf3.94
mov edi, dword [esp + 0x18]
cmp bl, 1
jne 0x47aeef
mov esi, dword [esp + 0x30]
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push esi
push esi
mov ecx, edi
call eax
push 0
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.0047ca10
add esp, 0xc
push 0xffff
mov ecx, edi
call fcn.0047e310
push 0x24
lea ecx, [esp + 0x74]
mov byte [esp + 0x23], 1
call fcn.00478ec0
push 0x5d
lea ecx, [esp + 0x74]
call fcn.00478ec0
jmp 0x47af75
mov dword [ebp], 0x10002
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47affb
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp 0x47affb
mov dword [ebp], 0x10002
test esi, esi
je 0x47affb
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x47affb
mov dword [ebp], 7
jmp 0x47affb
mov ecx, dword [esp + 0x18]
push edi
call fcn.0047e150
jmp 0x47af75
cmp byte [esp + 0x13], 2
jne 0x47af38
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00485210
mov al, byte [esp + 0xcc]
mov esi, dword [esp + 0x18]
test al, 2
je 0x47af96
push 2
jmp 0x47af9c
test al, 4
je 0x47afa3
push 4
mov ecx, esi
call fcn.00479320
cmp byte [esp + 0x2b], 0
je 0x47afb3
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
cmp byte [esp + 0x1f], 0
je 0x47afca
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00477290
jmp 0x47afd8
mov edx, dword [esp + 0x3c]
push 0
push edx
mov ecx, esi
call fcn.0047dca0
test byte [esi + 0x30], 1
je 0x47afeb
cmp dword [ebp], 0
jg 0x47afeb
mov dword [ebp], 7
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47affb
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0x94]
call fcn.00476020
lea ecx, [esp + 0x70]
call fcn.00476020
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
pop edi
pop ebp
xor ecx, esp
call fcn.00439589
add esp, 0xac
ret 0x14