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

Disassembly:
push 0xffffffffffffffff
push 0x48a3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ab4ec]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x4ab4ec]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
mov eax, 0x61
xor ecx, ecx
lea edx, [esp + 0x12]
mov word [esp + 0x10], ax
push edx
mov word [esp + 0x16], cx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x28], ebp
call fcn.00440280
lea eax, [esp + 0x10]
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4403f0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.0040df90
xor ecx, ecx
test eax, eax
jne 0x44043a
cmp dword [esp + 0x38], 8
mov word [ebp], cx
jb 0x440433
mov edx, dword [esp + 0x24]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
jmp 0x4406d1
mov eax, 0x41
lea edx, [esp + 0x16]
mov word [esp + 0x14], ax
push edx
mov word [esp + 0x1a], cx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00440280
mov edx, 0x3b
xor eax, eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], dx
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
mov byte [esp + 0x8c], 1
call fcn.00440280
mov ecx, dword [esp + 0x34]
xor esi, esi
mov byte [esp + 0x80], 2
test ecx, ecx
jl 0x4404ef
cmp esi, dword [esp + 0x50]
jg 0x4404ef
cmp esi, ecx
jbe 0x4404b3
call fcn.0045747f
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov edi, dword [esp + 0x24]
jae 0x4404c2
lea edi, [esp + 0x24]
cmp esi, dword [esp + 0x50]
jbe 0x4404d1
call fcn.0045747f
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4404e0
lea eax, [esp + 0x40]
mov dx, word [edi + esi*2]
cmp dx, word [eax + esi*2]
jne 0x4404ef
inc esi
cmp esi, ecx
jle 0x4404a0
sub esi, 1
jns 0x44055c
xor eax, eax
cmp dword [esp + 0x70], 8
mov word [ebp], ax
jb 0x44050e
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00456b63
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], dx
jb 0x440538
mov eax, dword [esp + 0x40]
push eax
call fcn.00456b63
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov word [esp + 0x40], cx
jb 0x4406cc
mov edx, dword [esp + 0x24]
push edx
jmp 0x4406c4
cmp esi, ecx
jbe 0x440569
call fcn.0045747f
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x440578
lea eax, [esp + 0x24]
movzx edi, word [eax + esi*2]
test esi, esi
je 0x440611
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.0043e350
lea ecx, [esp + 0x28]
push edi
push ecx
mov ebp, eax
call fcn.0043e350
add esp, 0x10
cmp eax, ebp
jne 0x440609
lea edx, [esp + 0x58]
push edi
push edx
call fcn.0043e350
mov ebp, eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0043e350
add esp, 0x10
cmp eax, ebp
jne 0x440609
mov ecx, dword [esp + 0x1c]
mov word [ecx], di
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 1
call fcn.00403ac0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00403ac0
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00403ac0
mov eax, 2
jmp 0x4406d1
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x50]
jne 0x44065f
cmp ecx, dword [esp + 0x6c]
jne 0x44065f
inc esi
lea ecx, [esp + 0x58]
mov word [ebp], si
mov byte [esp + 0x80], 1
call fcn.00403ac0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00403ac0
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00403ac0
mov eax, 1
jmp 0x4406d1
xor edx, edx
cmp dword [esp + 0x70], 8
mov word [ebp], dx
jb 0x440679
mov eax, dword [esp + 0x5c]
push eax
call fcn.00456b63
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
jb 0x4406a5
mov edx, dword [esp + 0x40]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x4406cc
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00456b63
add esp, 4
mov eax, 3
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0045718a
add esp, 0x74
ret