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

Disassembly:
push 0xffffffffffffffff
push 0x495d76
mov eax, dword fs:[0]
push eax
mov eax, 0x40d8
call fcn.00465940
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x40d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x40ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40fc]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov edi, 7
xor edx, edx
mov eax, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x431225
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00405e40
lea ecx, [esp + 0x38]
lea esi, [esp + 0xa8]
mov dword [esp + 0x40f4], ebx
call fcn.00426740
mov byte [esp + 0x40f4], 2
cmp dword [esp + 0x50], 8
jb 0x431272
mov eax, dword [esp + 0x3c]
push eax
call fcn.00442458
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0x50], edi
xor ecx, ecx
mov edi, 0x10
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
mov dword [esp + 0x14], 0x4359a0
mov dword [esp + 0x18], 0x4359c0
mov dword [esp + 0x30], 0x4359a0
mov dword [esp + 0x34], 0x4359c0
cmp dword [esp + 0xc0], edi
jae 0x4312c1
lea eax, [esp + 0xac]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x43130e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x43130e
cmp dword [esp + 0xc0], edi
jb 0x431304
mov edx, dword [esp + 0xac]
push edx
call fcn.00442458
add esp, 4
mov eax, 1
jmp 0x43147b
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x435950
mov dword [esp + 0x20], 0x435980
mov dword [esp + 0xc4], 0x4382b0
mov dword [esp + 0xc8], 0x438310
mov dword [esp + 0xcc], 0x438320
mov dword [esp + 0xd0], 0x438380
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], ebx
call fcn.004383a0
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00437bf0
add esp, 8
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x4313ed
lea edi, [esp + 0x14]
lea eax, [esp + 0x54]
call fcn.00435bb0
jmp 0x431423
mov ecx, dword [esp + 0x70]
cmp ecx, ebx
jbe 0x431416
mov eax, dword [esp + 0x64]
add eax, 8
lea esp, [esp]
cmp byte [eax + 0x11], bl
jne 0x43140e
mov edx, dword [eax]
add esi, edx
mov edx, dword [eax + 4]
adc ebp, edx
add eax, 0x20
sub ecx, 1
jne 0x431400
lea eax, [esp + 0x14]
push ebx
push eax
call dword [esp + 0x20]
add esp, 8
lea edi, [esp + 0x14]
lea eax, [esp + 0x54]
call fcn.00435bb0
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x431454
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43144c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431454
mov dword [esp + 0x24], 0xffffffff
cmp dword [esp + 0xc0], 0x10
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov dword [eax + 4], ebp
jb 0x431477
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00442458
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40d0]
xor ecx, esp
call fcn.00461095
add esp, 0x40e4
ret