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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x43b07c]
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 [0x43c77c]
mov esi, 0x43c77c
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 0x4098f9
lea eax, [esp + 0x40]
push eax
mov eax, edi
call fcn.00409807
cmp eax, ebx
je 0x4098f9
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004042ff
mov eax, esi
jmp 0x40a07f
mov eax, dword [0x43c77c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x43c77c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
cmp byte [ebp + 0x10], bl
jne 0x40998e
lea eax, [edi + 0x50]
lea edi, [esp + 0x1c]
call fcn.004076f7
lea edi, [esp + 0x28]
call fcn.004069bb
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004042ff
mov esi, edi
call fcn.004074d5
mov eax, dword [esp + 0xc]
add eax, 0x58
lea edi, [esp + 0x24]
call fcn.004069bb
mov esi, edi
call fcn.004074d5
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
call fcn.0040a096
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00401f78
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004042ff
mov edi, dword [esp + 0xc]
mov esi, 0x43c77c
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.004042e4
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 0x409d91
push 0x258
call fcn.00423f8c
mov edi, eax
pop ecx
cmp edi, ebx
je 0x409a33
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, 0x43c77c
mov dword [edi + 0x248], ebx
mov dword [edi + 0x24c], ebx
call fcn.004042e4
jmp 0x409a35
xor edi, edi
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jne 0x409a8d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
cmp edx, ecx
jb 0x409a5a
lea edx, [ecx + eax*4]
lea esi, [esp + 0x1c]
cmp esi, edx
jb 0x409e98
cmp eax, ebx
jne 0x409a63
xor esi, esi
inc esi
jmp 0x409a75
mov esi, dword [esp + 0x14]
add esi, esi
cmp esi, ebx
jl 0x409aa2
cmp esi, 0x1fffffff
ja 0x409aa2
push 4
push esi
push ecx
call fcn.00423ea7
add esp, 0xc
cmp eax, ebx
je 0x409aa2
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 0x409a9e
mov dword [eax], edi
inc dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov eax, esi
lea ecx, [esp + 0x10]
call fcn.0040a31d
cmp dword [0x43d430], 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 0x409add
lea eax, [esp + 0x40]
call fcn.004192d0
cmp al, bl
je 0x409ea2
mov eax, dword [0x43c77c]
mov ecx, 0x43c77c
call dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.0040a31d
mov eax, dword [eax]
cmp byte [ebp + 0x10], bl
je 0x409bc8
mov ecx, dword [esp + 0x38]
mov dword [edi], eax
mov eax, esi
call fcn.0040a31d
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
add ecx, 0x60
call fcn.0040a27c
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.0040a174
cmp dword [esp + 0x38], 9
pop ecx
je 0x409b53
cmp dword [esp + 0x34], 0xa
jne 0x409b62
add edi, 0x250
lea eax, [esp + 0x60]
call fcn.004069bb
lea eax, [esp + 0x60]
lea edi, [esp + 0x70]
call fcn.004076f7
lea edi, [esp + 0x20]
call fcn.004069bb
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
call fcn.004042ff
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.0041934c
mov edi, eax
lea eax, [esi + 0x9c]
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00407ef8
mov eax, dword [esp + 0x6c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004042ff
jmp 0x409d2a
mov esi, dword [esp + 0xc]
add esi, 0x84
mov ecx, esi
call fcn.0040a29d
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
cmp eax, 9
je 0x409bea
cmp eax, 0xa
jne 0x409c29
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
call fcn.0040a31d
mov eax, dword [eax]
mov ecx, esi
call fcn.0040a29d
push eax
mov eax, dword [esp + 0x10]
add eax, 0x58
lea ecx, [esp + 0x40]
call fcn.0040a174
pop ecx
add edi, 0x250
call fcn.004069bb
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004042ff
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
call fcn.0040a31d
mov eax, dword [eax]
mov ecx, esi
call fcn.0040a29d
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x68]
call fcn.0040a174
mov dword [esp], 0x24c
lea eax, [esp + 0xa8]
push ebx
push eax
mov dword [esp + 0xac], ebx
call fcn.00423920
add esp, 0xc
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x68]
call dword [0x43310c]
push 1
push ebx
push ebx
push dword [esp + 0xc8]
mov dword [esp + 0xa0], eax
call fcn.00430190
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 0x409cb9
cmp dword [esp + 0x34], 7
jne 0x409cbf
lea eax, [esp + 0x24]
jmp 0x409cc6
mov eax, dword [esp + 0xc]
add eax, 0x58
lea edi, [esp + 0x20]
call fcn.004069bb
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.0041934c
mov edi, eax
mov eax, dword [esp + 0xc]
add eax, 0x9c
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00407ef8
add esp, 0xc
cmp dword [esp + 0x90], ebx
je 0x409d1a
push dword [esp + 0x90]
call dword [0x433118]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
call fcn.004042ff
mov esi, dword [esp + 0xc]
cmp edi, ebx
jne 0x409f4a
cmp byte [esi + 0x7c], bl
je 0x409d4d
cmp dword [esp + 0x34], 6
jne 0x409d4d
lea ebx, [esp + 0x20]
lea esi, [esp + 0x44]
call fcn.004081e2
xor ebx, ebx
mov eax, dword [esp + 0x68]
cmp dword [eax], ebx
je 0x409d6f
push dword [esp + 0x1c]
call dword [0x43d438]
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.004042ff
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x6c]
jl 0x4099cb
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.00419c6d
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x409fa4
mov esi, dword [0x4330c4]
cmp dword [esp + 0x88], ebx
je 0x409df3
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], ebx
cmp dword [esp + 0x58], ebx
je 0x409e03
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004042ff
lea esi, [esp + 0x44]
call fcn.00406d49
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x409e5b
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.0040a31d
mov esi, dword [eax]
cmp esi, ebx
je 0x409e54
mov eax, dword [esi + 0x250]
sub eax, 0x10
call fcn.004042ff
lea eax, [esi + 0x10]
call fcn.0041926a
push esi
call fcn.004238f0
pop ecx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x409e26
cmp dword [esp + 0x10], ebx
je 0x409e6f
push dword [esp + 0x10]
call fcn.00423db8
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.004042ff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004042ff
mov esi, dword [esp + 0x3c]
jmp 0x4098e6
push 0x80004005
call fcn.004042c0
cmp dword [esp + 0x58], ebx
je 0x409eb6
push dword [esp + 0x58]
call dword [0x4330c4]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004042ff
lea esi, [esp + 0x44]
call fcn.00406d49
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x409f0e
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.0040a31d
mov esi, dword [eax]
cmp esi, ebx
je 0x409f07
mov eax, dword [esi + 0x250]
sub eax, 0x10
call fcn.004042ff
lea eax, [esi + 0x10]
call fcn.0041926a
push esi
call fcn.004238f0
pop ecx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x409ed9
cmp dword [esp + 0x10], ebx
je 0x409f22
push dword [esp + 0x10]
call fcn.00423db8
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.004042ff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004042ff
push 0xb
pop esi
jmp 0x4098e6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004042ff
cmp dword [esp + 0x58], ebx
je 0x409f6a
push dword [esp + 0x58]
call dword [0x4330c4]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004042ff
lea esi, [esp + 0x44]
call fcn.00406d49
lea esi, [esp + 0x10]
call fcn.0040a2be
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004042ff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004042ff
push 0xd
jmp 0x409f44
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
call fcn.004193f5
mov esi, dword [0x4330c4]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], ebx
je 0x409fd3
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], ebx
cmp dword [esp + 0x58], ebx
je 0x409fe3
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004042ff
lea esi, [esp + 0x44]
call fcn.00406d49
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x2c], eax
jle 0x40a03b
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.0040a31d
mov esi, dword [eax]
cmp esi, ebx
je 0x40a034
mov eax, dword [esi + 0x250]
sub eax, 0x10
call fcn.004042ff
lea eax, [esi + 0x10]
call fcn.0041926a
push esi
call fcn.004238f0
pop ecx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x40a006
cmp dword [esp + 0x10], ebx
je 0x40a04f
push dword [esp + 0x10]
call fcn.00423db8
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.004042ff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004042ff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004042ff
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004238fb
mov esp, ebp
pop ebp
ret 0xc