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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
push ebx
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
push edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x18], ecx
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], esi
call fcn.0049c2d1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x403f14
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x2c]
call fcn.0049c2f9
lea ecx, [esp + 0x40]
push ecx
call fcn.00404f50
add esp, 4
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], eax
call fcn.0049c2d1
mov eax, dword [esi + 4]
test eax, eax
je 0x403f49
cmp eax, 0xffffffff
jae 0x403f49
dec eax
mov dword [esi + 4], eax
mov ebx, dword [esi + 4]
neg ebx
sbb ebx, ebx
not ebx
lea ecx, [esp + 0x24]
and ebx, esi
call fcn.0049c2f9
xor esi, esi
cmp ebx, esi
je 0x403f6d
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ebx, dword [esp + 0x40]
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov byte [esp + 0x24], al
mov al, byte [edi]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
cmp al, 0x2b
je 0x403fab
mov dword [esp + 0x34], esi
cmp al, 0x2d
jne 0x403fb3
mov dword [esp + 0x34], 1
call fcn.0049d988
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
mov cl, byte [eax]
push ebx
push 0x65
push edi
mov byte [esp + 0x2c], cl
mov word [esp + 0x2d], 0x65
call fcn.0049da10
movsx edx, byte [esp + 0x2c]
add esp, 0xc
push ebx
push edx
push edi
mov esi, eax
call fcn.0049da10
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x403ff5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov eax, edx
cmp ecx, 0x10
jae 0x404008
lea eax, [esp + 0x68]
cmp byte [eax], 0x7f
je 0x40414e
mov eax, edx
cmp ecx, 0x10
jae 0x40401c
lea eax, [esp + 0x68]
cmp byte [eax], 0
jle 0x40414e
push ebx
push edi
lea ecx, [esp + 0x54]
call fcn.004049e0
test esi, esi
jne 0x40404a
mov eax, dword [esp + 0x18]
push 0x30
push eax
lea ecx, [esp + 0x54]
call fcn.00404b00
mov ebx, dword [esp + 0x14]
jmp 0x404079
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x404066
mov ecx, dword [esp + 0x1c]
push 0x30
push ecx
lea ecx, [esp + 0x54]
call fcn.00404b00
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x18]
push 0x30
push edx
sub esi, edi
push esi
lea ecx, [esp + 0x58]
call fcn.00402a20
push 0x30
test ebx, ebx
jne 0x40408f
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
call fcn.00404b00
jmp 0x4040bc
mov ecx, dword [esp + 0x2c]
sub ebx, edi
push ecx
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x58]
call fcn.00402a20
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push ebx
lea ecx, [esp + 0x58]
call fcn.00402a20
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x68]
mov esi, 0x10
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x7c], esi
jae 0x4040d7
lea ebx, [esp + 0x68]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x4040e5
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0049dac0
mov edi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x40412e
jmp 0x404100
test al, al
jle 0x40412e
mov edx, edi
sub edx, dword [esp + 0x34]
movsx eax, al
cmp eax, edx
jae 0x40412e
push 0
sub edi, eax
push 1
push edi
lea ecx, [esp + 0x58]
call fcn.00402a20
cmp byte [ebx + 1], 0
jle 0x404128
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x404100
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x40413c
lea edi, [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
lea eax, [ebx + ecx]
add eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x20]
add eax, dword [esp + 0x1c]
cmp dword [edx + 0x24], 0
jl 0x40417c
jg 0x404170
test ecx, ecx
je 0x40417c
cmp ecx, eax
jbe 0x40417c
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x404184
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x14]
mov esi, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x40422b
cmp eax, 0x100
je 0x4041c8
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00404840
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
jmp 0x404220
cmp dword [esp + 0x34], 0
jbe 0x4041f9
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 1
push edi
push eax
push ecx
lea edx, [esp + 0x44]
push edx
push esi
call fcn.004047d0
mov ecx, dword [eax]
add esp, 0x18
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
inc edi
dec ebx
mov dword [ebp + 0x14], edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.00404840
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x2c], 0
add esp, 0x18
movsx ecx, byte [esp + 0x20]
push ebx
push ecx
push edi
call fcn.0049da10
add esp, 0xc
test eax, eax
je 0x4042ff
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x14]
sub eax, edi
push edx
mov edx, dword [ebp + 0x10]
lea ebx, [eax + 1]
lea eax, [ebx - 1]
push eax
push edi
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00404ca0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0x30
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.00404840
mov edx, dword [eax]
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x18
call eax
mov edx, dword [ebp + 0x14]
push 1
mov byte [esp + 0x30], al
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
call fcn.00404840
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x40]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x54]
push eax
push esi
call fcn.00404840
mov ecx, dword [eax]
add edi, ebx
add esp, 0x30
sub dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
push ebx
push 0x65
push edi
call fcn.0049da10
add esp, 0xc
test eax, eax
je 0x4043b3
mov edx, dword [ebp + 0x14]
sub eax, edi
lea ebx, [eax + 1]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00404ca0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00404840
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [eax + 4]
add esp, 0x18
test byte [ecx + 0x14], 4
mov dword [ebp + 0x14], edx
mov dword [esp + 0x18], 0
mov ecx, 0x59749c
jne 0x404386
mov ecx, 0x5974a0
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.004047d0
mov edx, dword [eax]
add edi, ebx
add esp, 0x18
sub dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push edi
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00404ca0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00404840
mov ecx, dword [eax]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x60]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push edi
push esi
mov dword [ebp + 0x14], eax
call fcn.00404840
mov esi, 0x10
add esp, 0x30
cmp dword [esp + 0x60], esi
jb 0x40443c
mov eax, dword [esp + 0x4c]
push eax
call fcn.0049d0c3
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], esi
jb 0x40445f
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0049d0c3
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret