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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 8], 0
test dword [esi + 8], 0x80000
je 0x403ac0
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
mov dword [ebp - 4], 1
cmp eax, dword [esi + 0x24]
jbe 0x403ac7
mov dword [ebp - 4], 0
cmp dword [esi], 0
jne 0x403ae7
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x403ae7
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0x403aed
lea eax, [esi + 0x39272]
mov cl, byte [esi + 0x38]
mov dword [esi + 0x30], eax
mov dword [ebp - 0x10], eax
add eax, 0x14cbc
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
shr byte [eax], cl
xor eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test dword [esi + 8], 0x1000
je 0x403b9e
cmp dword [esi + 0x64], 0
jne 0x403b9e
mov ecx, dword [esi + 0x44]
mov eax, 0x78
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403b62
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403b54
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403b44
mov ecx, dword [esi + 0x44]
mov eax, 1
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403b9e
lea ebx, [ebx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403b90
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403b80
mov ecx, dword [esi + 0x44]
xor eax, eax
cmp edx, 4
sete al
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403bde
lea esp, [esp]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403bd0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403bc0
cmp dword [ebp - 4], 0
mov edx, dword [esi + 0x48]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x44]
mov dword [ebp - 0xc], edx
jne 0x403c35
test dword [esi + 8], 0x40000
jne 0x403c08
cmp dword [esi + 0x3c], 0x30
jb 0x403c08
mov ecx, esi
call fcn.00403190
jmp 0x403c0f
mov ecx, esi
call fcn.00403740
mov ecx, esi
call fcn.00403850
mov edx, dword [esi + 0x3c]
mov dword [ebp - 8], eax
test edx, edx
je 0x403d4e
mov ecx, dword [esi + 0x30]
sub ecx, edi
inc ecx
cmp ecx, edx
jb 0x403d4e
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x403d4b
xor eax, eax
mov dword [esi + 0x30], edi
mov ecx, ebx
shl eax, cl
or eax, edx
mov dword [esi + 0x48], eax
lea eax, [ebx + 2]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403c7e
lea ecx, [ecx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403c70
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403c60
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x403cb1
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403ca3
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403c93
mov edx, 2
mov ecx, dword [esi + 0x44]
movzx eax, word [esi + 0x3c]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403cee
lea ecx, [ecx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403ce0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403cd0
xor dword [esi + 0x3c], 0xffff
dec edx
jne 0x403cb6
cmp dword [esi + 0x3c], edx
jbe 0x403d6c
lea ecx, [ecx]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403d43
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403d35
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403d25
inc edx
cmp edx, dword [esi + 0x3c]
jb 0x403d00
jmp 0x403d6c
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403d6c
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
call fcn.00403740
mov ecx, esi
call fcn.00403850
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403eb7
mov ecx, dword [esi + 0x44]
cmp eax, 4
jne 0x403e09
test ecx, ecx
je 0x403db3
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403da5
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403d95
test dword [esi + 8], 0x1000
je 0x403eb7
mov edx, dword [esi + 0x18]
mov edi, 4
mov ecx, dword [esi + 0x44]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403dfe
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403df0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403de0
shl edx, 8
dec edi
jne 0x403dc8
jmp 0x403eb7
xor eax, eax
xor edi, edi
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 3]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403e3e
lea ecx, [ecx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403e30
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403e20
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x403e71
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403e63
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403e53
mov edx, 2
mov ecx, dword [esi + 0x44]
movzx eax, di
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x403eae
lea esp, [esp]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x403ea0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x403e90
xor edi, 0xffff
dec edx
jne 0x403e76
push 0x240
lea eax, [esi + 0x8192]
push 0
push eax
call dword [0x410c48]
push 0x40
lea eax, [esi + 0x83d2]
push 0
push eax
call dword [0x410c48]
mov ebx, dword [esi + 0x30]
lea eax, [esi + 0x9273]
inc dword [esi + 0x64]
add esp, 0x18
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], 0
sub ebx, eax
je 0x403f9c
cmp dword [esi], 0
je 0x403f50
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push ebx
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
test eax, eax
jne 0x403f9c
pop edi
mov dword [esi + 0x6c], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esi + 0x39272]
cmp eax, edx
jne 0x403f96
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov edi, dword [eax]
mov eax, dword [esi + 0x74]
sub edi, ecx
cmp ebx, edi
cmovb edi, ebx
add eax, ecx
push edi
push edx
push eax
call dword [0x410a7c]
add dword [esi + 0x8c], edi
add esp, 0xc
sub ebx, edi
je 0x403f9c
mov dword [esi + 0x58], edi
mov eax, ebx
pop edi
mov dword [esi + 0x5c], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x8c], ebx
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret