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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f367d
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x511538]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x511538]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
call fcn.004027d0
lea eax, [ebx + 0x20]
lea edi, [esp + 0x38]
mov dword [esp + 0x328], ebx
call fcn.00401490
lea esi, [ebx + 8]
cmp dword [esp + 0x48], ebx
je 0x403f14
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x403f04
mov eax, edi
push eax
call dword [0x4f53f8]
test eax, eax
setne al
cmp al, bl
jne 0x403f2e
cmp dword [esp + 0x4c], esi
jb 0x403f27
mov eax, dword [esp + 0x38]
push eax
call fcn.004d540a
add esp, 4
xor al, al
jmp 0x404292
push 0x500fc8
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00406d20
add esp, 0xc
mov byte [esp + 0x328], 1
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x403f5b
lea eax, [esp + 0x54]
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [0x4f526c]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x403fb3
cmp dword [esp + 0x68], esi
jb 0x403f86
mov edx, dword [esp + 0x54]
push edx
call fcn.004d540a
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
cmp dword [esp + 0x4c], esi
jb 0x403f27
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004d540a
add esp, 4
xor al, al
jmp 0x404292
lea edx, [esp + 0xf0]
push edx
push 0x500fd4
call fcn.004d74d4
add esp, 8
test eax, eax
je 0x404231
lea eax, [esp + 0xf0]
push eax
push 0x500fd8
call fcn.004d74d4
add esp, 8
test eax, eax
je 0x404231
lea ecx, [esp + 0xa8]
push ecx
lea ebx, [esp + 0x3c]
call fcn.00406e10
add esp, 4
lea edx, [esp + 0xf0]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x334], 2
call fcn.00406ec0
add esp, 0xc
mov byte [esp + 0x328], 4
cmp dword [esp + 0xbc], esi
jb 0x404040
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004d540a
add esp, 4
mov eax, dword [esp + 0x1c]
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], dx
cmp dword [esp + 0x30], esi
jae 0x40406d
lea eax, [esp + 0x1c]
push eax
call dword [0x4f5230]
test al, 1
je 0x404091
mov ecx, dword [esp + 0x1c]
and eax, 0xfffffffe
cmp dword [esp + 0x30], esi
jae 0x404089
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [0x4f522c]
test byte [esp + 0xc4], 0x10
je 0x404196
push ebx
xor eax, eax
push 0x500f94
lea ecx, [esp + 0x78]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], ax
call fcn.00402b70
mov byte [esp + 0x328], 5
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4040d9
lea edx, [esp + 0x1c]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4040f6
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402b70
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x330], 6
call fcn.00403e70
mov esi, 8
add esp, 8
cmp dword [esp + 0xa0], esi
jb 0x40414e
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004d540a
add esp, 4
xor edx, edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], dx
cmp dword [esp + 0x84], esi
jb 0x40417c
mov eax, dword [esp + 0x70]
push eax
call fcn.004d540a
add esp, 4
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x40418a
lea eax, [esp + 0x1c]
push eax
call dword [0x4f5228]
jmp 0x404211
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4041a4
lea edx, [esp + 0x1c]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4041c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.00402b70
mov edx, dword [esp + 0x18]
push edx
push 1
lea esi, [esp + 0x78]
mov byte [esp + 0x330], 7
call fcn.004042c0
add esp, 8
cmp dword [esp + 0x84], 8
jb 0x40420c
mov eax, dword [esp + 0x70]
push eax
call fcn.004d540a
add esp, 4
mov esi, 8
mov byte [esp + 0x328], 1
cmp dword [esp + 0x30], esi
jb 0x40422c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004d540a
add esp, 4
mov esi, 8
mov edi, dword [esp + 0x14]
lea edx, [esp + 0xc4]
push edx
push edi
call dword [0x4f5224]
test eax, eax
jne 0x403fb3
push edi
call dword [0x4f5270]
cmp dword [esp + 0x68], esi
jb 0x404266
mov eax, dword [esp + 0x54]
push eax
call fcn.004d540a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], cx
cmp dword [esp + 0x4c], esi
jb 0x404290
mov edx, dword [esp + 0x38]
push edx
call fcn.004d540a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.004d6168
mov esp, ebp
pop ebp
ret