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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0x4b7e
mov word [esp + 0x96], 0x44c9
mov byte [esp + 0x95], 0xd8
mov dl, byte [esp + 0xb3]
mov dword [esp + 0x90], 0x637d
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov eax, 0xa446
sub eax, esi
sbb ebx, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov ax, word [esp + 0x96]
mov bx, ax
add bx, 0x1f37
mov word [esp + 0x42], bx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x8c], ebx
cmp dword [esp + 0x84], 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ecx
mov byte [esp + 0x2f], dl
mov dword [esp + 0x28], esi
mov word [esp + 0x26], ax
jne 0x4037d4
jmp 0x403a67
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.004063c0
mov ecx, 0x637d
xor edx, edx
add edx, 0x18
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x7c]
mov di, word [esi + 0x14]
add eax, edx
mov byte [esp + 0xb3], 0xed
movzx edx, di
add eax, edx
sub ecx, dword [esp + 0x90]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x7c]
movzx eax, word [eax + 6]
cmp dword [esp + 0x6c], eax
jge 0x4039f1
mov eax, 0x7f4c
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0x40f1
mov ecx, dword [esp + 0x90]
add ecx, 0xfffffc6a
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x54], edx
cmp eax, ecx
je 0x4037d4
mov eax, 0x3506
mov ecx, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov si, word [esp + 0x42]
mov di, word [esp + 0x96]
mov edx, dword [edx + 0xc]
add eax, edx
mov bx, 0xbf74
sub bx, di
mov dword [esp + 0x80], eax
mov eax, 0x5288
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, edx
mov ecx, dword [esp + 0x20]
mul ecx
mov ecx, dword [esp + 0x34]
imul ecx, ecx, 0x5288
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
add eax, 0x14
mov dword [esp + 0x70], eax
cmp bx, si
je 0x40393a
mov eax, dword [esp + 0x70]
mov cx, word [esp + 0x26]
xor cx, 0x2a70
mov word [esp + 0xa6], cx
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
add eax, dword [esp + 0x50]
mov esi, dword [esp + 0x80]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00403470
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add eax, 0x333d
mov ecx, dword [esp + 0x34]
adc ecx, 0
mov edx, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
xor edi, edi
mov ebx, 0xb6fc
sub ebx, edx
sbb edi, esi
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub eax, ebx
setae dl
sub ecx, edi
setae dh
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], dh
mov byte [esp + 0x12], dl
je 0x40399d
mov al, byte [esp + 0x13]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12]
test al, al
jne 0x4039f1
jmp 0x4039a7
mov eax, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x7edd
mov cl, byte [esp + 0x2f]
mov byte [esp + 0xb3], cl
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
add eax, 0x28
mov dword [esp + 0x48], eax
xor eax, eax
mov dl, al
test dl, dl
jne 0x40393a
jmp 0x4039e4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
jmp 0x40381b
mov al, byte [esp + 0x2f]
xor al, 0xff
mov ecx, dword [esp + 0x7c]
mov dl, byte [esp + 0x95]
add dl, 0xd7
mov byte [esp + 0xb3], al
mov byte [esp + 0x4f], dl
mov esi, dword [esp + 0x30]
add esi, 0x32c3
mov al, byte [esp + 0x95]
add al, 0x90
mov dl, byte [esp + 0x4f]
mov dword [esp + 0xa0], esi
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x74], ecx
cmp al, dl
jae 0x4039e4
mov byte [esp + 0xb3], 0x8e
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00403470
mov dword [esp + 0xc], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret