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

Disassembly:
sub esp, 0xdc
push ebp
mov ebp, dword [esp + 0xe4]
test ebp, ebp
je 0x40af20
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x40af20
mov ecx, dword [esp + 0xec]
test ecx, ecx
jge 0x40a953
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a943
sub eax, edx
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xf0]
test ecx, ecx
push esi
je 0x40a977
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
sub ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ecx
jmp 0x40a9a4
lea eax, [esp + 0x4c]
push eax
push ebp
call dword [0x43910c]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
push 8
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], ecx
call dword [0x439110]
sub eax, esi
mov dword [esp + 0x18], eax
mov ecx, eax
test ecx, ecx
jge 0x40a9b0
mov dword [esp + 0x18], 0
push ebx
mov ebx, dword [esp + 0xfc]
push edi
and ebx, 0xffffff7c
or ebx, 0x800
push ebp
mov dword [esp + 0x104], ebx
call dword [0x439114]
push 0xd
mov dword [esp + 0x50], eax
call dword [0x439158]
mov edi, dword [0x439144]
push eax
push ebp
call edi
mov esi, eax
push esi
push ebp
mov dword [esp + 0x58], esi
call edi
xor edx, edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0xe0], edx
push 2
mov dword [esp + 0xe8], edx
push 0x43b074
mov dword [esp + 0xf0], edx
xor edi, edi
push ebp
mov dword [esp + 0xf8], edx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x20], edi
call dword [0x439118]
mov ecx, dword [esp + 0xf4]
mov esi, dword [esp + 0x40]
xor eax, eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov dword [0x44a2bc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], 0xffffffff
push edx
call fcn.0040a6a0
add esp, 0x10
test eax, eax
jl 0x40ae9c
lea esp, [esp]
mov ecx, eax
and ecx, 0xfffffeff
dec ecx
cmp ecx, 7
ja case.default.0x40ab52
jmp dword [ecx*4 + 0x40af2c]
test ah, 1
jne 0x40ae6d
test bl, 0x20
jne 0x40ae6d
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0xf4]
je 0x40ab8a
mov ecx, dword [esp + 0x14]
lea eax, [esi + esi*2]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
jmp 0x40ae6d
test ah, 1
jne 0x40ae6d
test bl, 0x20
jne 0x40ae6d
add dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
jmp 0x40ae6d
test ah, 1
je 0x40abcb
and edi, 0xfffffffe
mov dword [esp + 0x10], edi
jmp 0x40ae6d
or edi, 1
mov dword [esp + 0x10], edi
jmp 0x40ae6d
test ah, 1
je 0x40abe8
and edi, 0xfffffffd
mov dword [esp + 0x10], edi
jmp 0x40ae6d
or edi, 2
mov dword [esp + 0x10], edi
jmp 0x40ae6d
test ah, 1
je 0x40ac05
and edi, 0xfffffffb
mov dword [esp + 0x10], edi
jmp 0x40ae6d
or edi, 4
mov dword [esp + 0x10], edi
jmp 0x40ae6d
test ah, 1
je 0x40ac22
and edi, 0xffffffef
mov dword [esp + 0x10], edi
jmp 0x40ae6d
or edi, 0x10
mov dword [esp + 0x10], edi
jmp 0x40ae6d
test ah, 1
je 0x40ac3f
and edi, 0xfffffff7
mov dword [esp + 0x10], edi
jmp 0x40ae6d
or edi, 8
mov dword [esp + 0x10], edi
jmp 0x40ae6d
test ah, 1
jne 0x40ac8f
mov eax, dword [esp + 0x1c]
push 6
add eax, 6
push 0x43b06c
push eax
call fcn.0041d0b5
add esp, 0xc
test eax, eax
jne 0x40ae6d
mov eax, dword [esp + 0x1c]
add eax, 0xc
call fcn.0040a3d0
push eax
mov esi, ebp
call fcn.0040a560
mov esi, dword [esp + 0x28]
add esp, 4
jmp 0x40ae6d
mov edx, ebp
call fcn.0040a5a0
jmp 0x40ae6d
cmp eax, 0x100
je 0x40ae6d
cmp dword [esp + 0x44], edi
je 0x40ad02
mov eax, dword [esp + edi*4 + 0x6c]
test eax, eax
lea esi, [esp + edi*4 + 0x6c]
jne 0x40acd5
mov ecx, dword [esp + 0x50]
push ecx
push ebp
mov ebx, edi
call fcn.0040a5e0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x108]
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edx
push ebp
mov dword [esp + 0x4c], edi
call dword [0x439144]
lea eax, [esp + 0x3c]
push eax
push 1
push 0x43a9c4
push ebp
call dword [0x439118]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push ebp
call dword [0x439118]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x20]
jle 0x40ad26
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x40ad36
mov eax, dword [esp + 0x48]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, dword [esp + 0x20]
jle 0x40ad5d
test edx, edx
je 0x40ad5d
test bl, 0x10
je 0x40ad59
add dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
jmp 0x40ad5d
mov dword [esp + 0x20], eax
test bh, 4
jne 0x40ae51
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add ecx, esi
lea esi, [ecx + eax]
mov ecx, dword [esp + 0x28]
lea ebx, [edx + eax]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea edi, [eax + ecx]
push esi
mov eax, ecx
add edx, eax
push edx
push ebx
push edi
lea ecx, [esp + 0x6c]
push ecx
call dword [0x439510]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x100]
and dl, 0x10
neg dl
lea eax, [esp + 0x5c]
sbb edx, edx
and edx, 0x28
or edx, ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebp
call dword [0x4394d4]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40ae3e
test byte [esp + 0x10], 4
je 0x40ae3e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
cmp ecx, edx
jl 0x40ae3e
mov eax, dword [esp + 0x34]
sub ecx, edx
test eax, eax
jge 0x40ae0e
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
sub eax, esi
mov esi, eax
sub esi, ebx
push esi
mov esi, dword [esp + 0x2c]
push edi
push eax
add ecx, esi
push ecx
lea eax, [esp + 0x6c]
push eax
jmp 0x40ae1d
push esi
mov esi, dword [esp + 0x2c]
push edi
push ebx
add ecx, esi
push ecx
lea ecx, [esp + 0x6c]
push ecx
call dword [0x439510]
mov edx, dword [esp + 0x100]
push edx
lea eax, [esp + 0x60]
push eax
push 1
push 0x43a9c4
push ebp
call dword [0x4394d4]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x100]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jle 0x40ae65
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x30]
add dword [esp + 0x1c], ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0040a6a0
add esp, 0x10
test eax, eax
jge 0x40ab40
mov eax, dword [esp + 0x4c]
push eax
push ebp
call dword [0x43911c]
mov edi, dword [0x43915c]
mov esi, 1
mov eax, dword [esp + esi*4 + 0x6c]
test eax, eax
je 0x40aebe
push eax
call edi
inc esi
cmp esi, 0x20
jl 0x40aeb3
pop edi
test bh, 4
pop ebx
je 0x40af11
mov ecx, dword [esp + 0xf4]
test ecx, ecx
je 0x40af11
mov edx, dword [ecx]
mov esi, dword [esp + 0x30]
mov eax, dword [ecx + 4]
add edx, esi
test eax, eax
mov dword [ecx + 8], edx
jge 0x40af04
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
sub eax, esi
sub eax, edx
mov dword [ecx + 0xc], eax
mov eax, esi
pop esi
pop ebp
add esp, 0xdc
ret 0x14
mov edx, dword [esp + 0xc]
add eax, edx
add eax, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0xdc
ret 0x14
xor eax, eax
pop ebp
add esp, 0xdc
ret 0x14