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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x43c07c]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x68], eax
mov eax, dword [0x43d85c]
mov esi, 0x43d85c
mov ecx, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x6c], eax
jle 0x40a022
lea eax, [esp + 0x40]
push eax
mov eax, edi
call fcn.00409f30
cmp eax, ebx
je 0x40a022
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004045c4
mov eax, esi
jmp 0x40a7a8
mov eax, dword [0x43d85c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x43d85c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
cmp byte [ebp + 0x10], bl
jne 0x40a0b7
lea eax, [edi + 0x50]
lea edi, [esp + 0x1c]
call fcn.00407efc
lea edi, [esp + 0x28]
call fcn.00406cb8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004045c4
mov esi, edi
call fcn.00407cda
mov eax, dword [esp + 0xc]
add eax, 0x58
lea edi, [esp + 0x24]
call fcn.00406cb8
mov esi, edi
call fcn.00407cda
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
call fcn.0040a7bf
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00402263
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004045c4
mov edi, dword [esp + 0xc]
mov esi, 0x43d85c
mov ecx, esi
lea esi, [esp + 0x50]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004045a9
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], ebx
jle 0x40a4ba
push 0x258
call fcn.004249bb
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40a15c
or dword [edi], 0xffffffff
mov byte [edi + 8], 1
xor eax, eax
mov word [edi + 0x28], ax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x230], ebx
mov dword [edi + 0x234], ebx
mov dword [edi + 0x238], ebx
lea eax, [edi + 0x240]
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea esi, [edi + 0x250]
mov ecx, 0x43d85c
mov dword [edi + 0x248], ebx
mov dword [edi + 0x24c], ebx
call fcn.004045a9
jmp 0x40a15e
xor edi, edi
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jne 0x40a1b6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
cmp edx, ecx
jb 0x40a183
lea edx, [ecx + eax*4]
lea esi, [esp + 0x1c]
cmp esi, edx
jb 0x40a5c1
cmp eax, ebx
jne 0x40a18c
xor esi, esi
inc esi
jmp 0x40a19e
mov esi, dword [esp + 0x14]
add esi, esi
cmp esi, ebx
jl 0x40a1cb
cmp esi, 0x1fffffff
ja 0x40a1cb
push 4
push esi
push ecx
call fcn.004248d6
add esp, 0xc
cmp eax, ebx
je 0x40a1cb
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx*4]
cmp eax, ebx
je 0x40a1c7
mov dword [eax], edi
inc dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.004070b3
cmp dword [0x43e510], ebx
mov edi, dword [eax]
lea eax, [edi + 0x10]
mov dword [esp + 0x1c], eax
mov al, byte [ebp + 0x10]
mov dword [esp + 0x2c], edi
mov byte [edi + 8], al
jg 0x40a206
lea eax, [esp + 0x40]
call fcn.004199e0
cmp al, bl
je 0x40a5cb
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.004070b3
mov eax, dword [eax]
cmp byte [ebp + 0x10], bl
je 0x40a2f1
mov ecx, dword [esp + 0x38]
mov dword [edi], eax
mov eax, esi
call fcn.004070b3
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
add ecx, 0x60
call fcn.0040a932
mov esi, eax
mov eax, dword [esi]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
lea eax, [esi + 0x18]
push eax
mov eax, dword [esp + 0x10]
add eax, 0x58
lea ecx, [esp + 0x64]
call fcn.0040a82a
cmp dword [esp + 0x38], 9
pop ecx
je 0x40a27c
cmp dword [esp + 0x34], 0xa
jne 0x40a28b
add edi, 0x250
lea eax, [esp + 0x60]
call fcn.00406cb8
lea eax, [esp + 0x60]
lea edi, [esp + 0x70]
call fcn.00407efc
lea edi, [esp + 0x20]
call fcn.00406cb8
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
call fcn.004045c4
mov eax, edi
mov edi, dword [esp + 0x1c]
push eax
push ebx
push dword [esi + 0xc]
push ebx
push dword [esi + 0x10]
mov esi, dword [esp + 0x20]
lea eax, [esi + 0x50]
call fcn.00419a5c
mov edi, eax
lea eax, [esi + 0x9c]
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040871c
mov eax, dword [esp + 0x6c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004045c4
jmp 0x40a453
mov esi, dword [esp + 0xc]
add esi, 0x84
mov ecx, esi
call fcn.0040a953
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
cmp eax, 9
je 0x40a313
cmp eax, 0xa
jne 0x40a352
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
call fcn.004070b3
mov eax, dword [eax]
mov ecx, esi
call fcn.0040a953
push eax
mov eax, dword [esp + 0x10]
add eax, 0x58
lea ecx, [esp + 0x40]
call fcn.0040a82a
pop ecx
add edi, 0x250
call fcn.00406cb8
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004045c4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
call fcn.004070b3
mov eax, dword [eax]
mov ecx, esi
call fcn.0040a953
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x68]
call fcn.0040a82a
mov dword [esp], 0x24c
lea eax, [esp + 0xa8]
push ebx
push eax
mov dword [esp + 0xac], ebx
call fcn.00424330
add esp, 0xc
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x68]
call dword [0x433120]
push 1
push ebx
push ebx
push dword [esp + 0xc8]
mov dword [esp + 0xa0], eax
call fcn.00430ba0
mov esi, eax
mov eax, dword [esp + 0xc0]
xor ecx, ecx
add esi, eax
adc edx, ecx
cmp dword [esp + 0x34], 6
mov dword [esp + 0x9c], edx
je 0x40a3e2
cmp dword [esp + 0x34], 7
jne 0x40a3e8
lea eax, [esp + 0x24]
jmp 0x40a3ef
mov eax, dword [esp + 0xc]
add eax, 0x58
lea edi, [esp + 0x20]
call fcn.00406cb8
mov eax, edi
mov edi, dword [esp + 0x1c]
push eax
push dword [esp + 0xa0]
lea eax, [esp + 0x6c]
push esi
push ebx
push ebx
call fcn.00419a5c
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 0x9c
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040871c
add esp, 0xc
cmp dword [esp + 0x90], ebx
je 0x40a443
push dword [esp + 0x90]
call dword [0x43312c]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
call fcn.004045c4
mov esi, dword [esp + 0xc]
cmp edi, ebx
jne 0x40a673
cmp byte [esi + 0x7c], bl
je 0x40a476
cmp dword [esp + 0x34], 6
jne 0x40a476
lea ebx, [esp + 0x20]
lea esi, [esp + 0x44]
call fcn.00407745
xor ebx, ebx
mov eax, dword [esp + 0x68]
cmp dword [eax], ebx
je 0x40a498
push dword [esp + 0x1c]
call dword [0x43e518]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x248], eax
mov dword [ecx + 0x24c], edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004045c4
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x6c]
jl 0x40a0f4
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.0041a3ba
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x40a6cd
mov esi, dword [0x4330cc]
cmp dword [esp + 0x88], ebx
je 0x40a51c
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], ebx
cmp dword [esp + 0x58], ebx
je 0x40a52c
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004045c4
lea esi, [esp + 0x44]
call fcn.0040707e
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x40a584
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.004070b3
mov esi, dword [eax]
cmp esi, ebx
je 0x40a57d
mov eax, dword [esi + 0x250]
sub eax, 0x10
call fcn.004045c4
lea eax, [esi + 0x10]
call fcn.0041997a
push esi
call fcn.00424300
pop ecx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x40a54f
cmp dword [esp + 0x10], ebx
je 0x40a598
push dword [esp + 0x10]
call fcn.004247e7
pop ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004045c4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004045c4
mov esi, dword [esp + 0x3c]
jmp 0x40a00f
push 0x80004005
call fcn.00404585
cmp dword [esp + 0x58], ebx
je 0x40a5df
push dword [esp + 0x58]
call dword [0x4330cc]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004045c4
lea esi, [esp + 0x44]
call fcn.0040707e
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x40a637
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.004070b3
mov esi, dword [eax]
cmp esi, ebx
je 0x40a630
mov eax, dword [esi + 0x250]
sub eax, 0x10
call fcn.004045c4
lea eax, [esi + 0x10]
call fcn.0041997a
push esi
call fcn.00424300
pop ecx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x40a602
cmp dword [esp + 0x10], ebx
je 0x40a64b
push dword [esp + 0x10]
call fcn.004247e7
pop ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004045c4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004045c4
push 0xb
pop esi
jmp 0x40a00f
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004045c4
cmp dword [esp + 0x58], ebx
je 0x40a693
push dword [esp + 0x58]
call dword [0x4330cc]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004045c4
lea esi, [esp + 0x44]
call fcn.0040707e
lea esi, [esp + 0x10]
call fcn.0040a974
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004045c4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004045c4
push 0xd
jmp 0x40a66d
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
call fcn.00419b05
mov esi, dword [0x4330cc]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], ebx
je 0x40a6fc
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], ebx
cmp dword [esp + 0x58], ebx
je 0x40a70c
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004045c4
lea esi, [esp + 0x44]
call fcn.0040707e
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x40a764
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.004070b3
mov esi, dword [eax]
cmp esi, ebx
je 0x40a75d
mov eax, dword [esi + 0x250]
sub eax, 0x10
call fcn.004045c4
lea eax, [esi + 0x10]
call fcn.0041997a
push esi
call fcn.00424300
pop ecx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x40a72f
cmp dword [esp + 0x10], ebx
je 0x40a778
push dword [esp + 0x10]
call fcn.004247e7
pop ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004045c4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004045c4
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004045c4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042430b
mov esp, ebp
pop ebp
ret 0xc