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

Disassembly:
push 0xffffffffffffffff
push 0x498733
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4c54e8]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c54e8]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x94]
test ebx, ebx
mov ebp, ecx
mov dword [esp + 0x40], ebx
je 0x409ec4
mov edi, dword [ebx + 4]
test edi, edi
je 0x409ec4
mov ecx, edi
call fcn.00450ab9
mov esi, eax
mov ecx, edi
mov dword [esp + 0x44], esi
call fcn.00450aa9
mov ebx, dword [ebx + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x190]
lea edi, [ebp + 0x148]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
call fcn.00408f09
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esp + 0x1c], 2
call fcn.00408f09
mov ecx, dword [ebp + 0x378]
lea eax, [esp + 0x28]
add ecx, 0x48
push eax
call fcn.00409599
mov ecx, dword [eax]
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov edi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edi
test edi, edi
mov ebx, dword [esi + 4]
je 0x4099c4
cmp edi, esi
je 0x4099c9
call fcn.00476807
cmp dword [esp + 0x30], ebx
je 0x409ea1
test edi, edi
jne 0x4099dc
call fcn.00476807
mov eax, dword [esp + 0x30]
cmp eax, dword [edi + 4]
jne 0x4099ea
call fcn.00476807
mov eax, dword [esp + 0x30]
cmp eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x1c], ecx
jne 0x4099ff
call fcn.00476807
xor eax, eax
mov ebx, 0xf
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], eax
mov byte [esp + 0x68], al
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
add ecx, 0x5c
mov dword [esp + 0x90], eax
mov byte [esp + 0x1b], al
call fcn.00409599
mov eax, dword [eax]
test eax, eax
lea ecx, [esp + 0x64]
je 0x409a47
push 0xffffffffffffffff
push 0
add eax, 4
push eax
call fcn.00404749
jmp 0x409a53
push 7
push 0x49f8d0
call fcn.00404829
mov eax, dword [0x4c5040]
mov edi, 0x10
cmp dword [0x4c5054], edi
jae 0x409a6a
mov eax, 0x4c5040
mov ecx, dword [0x4c5050]
mov edx, dword [esp + 0x78]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x74]
call fcn.00406499
test eax, eax
je 0x409e60
mov eax, dword [esp + 0x78]
push 7
push 0x49f8d0
push eax
push 0
lea ecx, [esp + 0x74]
call fcn.00406499
test eax, eax
je 0x409e60
mov eax, dword [ebp + 0x160]
mov ebx, dword [eax]
lea esi, [ebp + 0x15c]
mov edi, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edi
jmp 0x409ac9
test edi, edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x54], ecx
je 0x409ad8
cmp edi, esi
je 0x409add
call fcn.00476807
cmp ebx, dword [esp + 0x54]
je 0x409b2f
test edi, edi
jne 0x409aec
call fcn.00476807
cmp ebx, dword [edi + 4]
jne 0x409af6
call fcn.00476807
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x409b15
mov edx, dword [esp + 0x28]
cmp dword [eax + 0xb4], edx
jne 0x409b15
mov ecx, dword [esp + 0x1c]
cmp dword [eax + 0xb8], ecx
je 0x409b28
lea ecx, [esp + 0x38]
call fcn.004065e9
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jmp 0x409ac9
mov esi, eax
jmp 0x409cdf
mov ecx, dword [0x4c7aac]
test ecx, ecx
je 0x409b43
push 0x49f8b8
call fcn.004500d9
push 0xe8
mov byte [esp + 0x1b], 1
call fcn.00475d55
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x8c], 1
je 0x409b70
mov ecx, eax
call fcn.004337a9
mov esi, eax
jmp 0x409b72
xor esi, esi
cmp dword [esp + 0x7c], 0x10
mov ebx, dword [esp + 0x68]
mov byte [esp + 0x8c], 0
jae 0x409b89
lea ebx, [esp + 0x68]
mov edi, dword [esi]
mov ecx, ebp
add edi, 0x20
call fcn.00450799
mov edx, dword [esp + 0x20]
push eax
push edx
mov ecx, ebp
call fcn.00450789
push eax
mov eax, dword [edi]
push 0x5000000b
push 0x16
push 0x59
push 0
push 0
push ebx
mov ecx, esi
call eax
mov ecx, esi
call fcn.00433a89
lea edi, [ebp + 0x30]
push 0x112
mov ecx, edi
call fcn.00432b49
push eax
push 0
mov ecx, esi
call fcn.004336e9
push 0x113
mov ecx, edi
call fcn.00432b49
push eax
push 1
mov ecx, esi
call fcn.004336e9
push 0x111
mov ecx, edi
call fcn.00432b49
push eax
push 2
mov ecx, esi
call fcn.004336e9
push 0x10f
mov ecx, edi
call fcn.00432b49
push eax
push 3
mov ecx, esi
call fcn.004336e9
push 0x110
mov ecx, edi
call fcn.00432b49
push eax
push 4
mov ecx, esi
call fcn.004336e9
push 0x10e
mov ecx, edi
call fcn.00432b49
push eax
push 5
mov ecx, esi
call fcn.004336e9
push 0x10c
mov ecx, edi
call fcn.00432b49
push eax
push 6
mov ecx, esi
call fcn.004336e9
push 0x10d
mov ecx, edi
call fcn.00432b49
push eax
push 7
mov ecx, esi
call fcn.004336e9
push 0x10b
mov ecx, edi
call fcn.00432b49
push eax
push 8
mov ecx, esi
call fcn.004336e9
push 0x109
mov ecx, edi
call fcn.00432b49
push eax
push 9
mov ecx, esi
call fcn.004336e9
push 0x10a
mov ecx, edi
call fcn.00432b49
push eax
push 0xa
mov ecx, esi
call fcn.004336e9
push 0x108
mov ecx, edi
call fcn.00432b49
push eax
push 0xb
mov ecx, esi
call fcn.004336e9
push 0x114
mov ecx, edi
call fcn.00432b49
push eax
push 0xc
mov ecx, esi
call fcn.004336e9
mov eax, dword [esp + 0x68]
mov ebx, 0x10
cmp dword [esp + 0x7c], ebx
jae 0x409cf2
lea eax, [esp + 0x68]
mov edi, dword [esp + 0x18]
push eax
mov ecx, edi
call fcn.00406a19
mov dword [esi + 0xc4], eax
cmp dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x68]
jae 0x409d12
lea eax, [esp + 0x68]
push eax
mov ecx, edi
call fcn.00406b09
push eax
mov ecx, esi
call fcn.00433709
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
jbe 0x409d39
call fcn.00476807
lea ebx, [ebx]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0x34], eax
jbe 0x409d52
call fcn.00476807
mov eax, dword [esp + 0x34]
cmp edi, eax
je 0x409df6
cmp edi, dword [ebx + 8]
jb 0x409d64
call fcn.00476807
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi]
jne 0x409de4
mov edx, dword [edi + 0x18]
mov ebx, dword [esp + 0x40]
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x10]
mov dword [esi + 0xd4], edx
mov eax, dword [edi + 0x1c]
push ecx
lea ecx, [esi + 0x7c]
mov dword [esi + 0xd8], eax
call fcn.00404749
push 0xffffffffffffffff
push 0
lea edx, [ebx + 0x2c]
push edx
lea ecx, [esi + 0x98]
call fcn.00404749
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], ecx
mov edx, dword [ebx]
mov dword [esi + 0xc0], edx
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x409dd0
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00406cf9
mov ebx, dword [esp + 0x24]
mov byte [esi + 0xe4], al
cmp edi, dword [ebx + 8]
jb 0x409dee
call fcn.00476807
add edi, 0x30
jmp 0x409d39
mov ecx, esi
call fcn.00433719
cmp byte [esp + 0x17], 0
mov byte [esi + 0xdc], 1
je 0x409e33
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [ebp + 0x15c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
call fcn.00408a49
add edi, 1
mov dword [esp + 0x20], edi
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0x8c], 0xffffffff
jb 0x409e52
mov edx, dword [esp + 0x68]
push edx
call fcn.00475c61
add esp, 4
mov esi, dword [esp + 0x44]
mov dword [esp + 0x7c], 0xf
jmp 0x409e82
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x8c], 0xffffffff
jb 0x409e7e
mov eax, dword [esp + 0x68]
push eax
call fcn.00475c61
add esp, 4
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 0
mov dword [esp + 0x78], 0
call fcn.00406429
mov edi, dword [esp + 0x2c]
jmp 0x4099b9
mov ecx, dword [esp + 0x20]
push 0
mov dword [ebp + 0x190], ecx
push 0
mov ecx, ebp
call fcn.00450789
push eax
call dword [0x49f3c8]
mov eax, 1
jmp 0x409ec6
xor eax, eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004761ea
add esp, 0x7c
ret 4