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

Disassembly:
sub esp, 0x78
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x88]
push ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp eax, dword [ebx + 0x38]
je 0x401187
mov eax, 0xc0000206
pop ebx
add esp, 0x78
ret 0x14
push ebp
push 0x204
push 0x3000
lea ecx, [esp + 0x1c]
push ecx
xor ebp, ebp
push ebp
lea edx, [esp + 0x18]
mov eax, 0x81330
push edx
push 0xffffffffffffffff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [0x403038]
mov dword [esp + 0xc], eax
cmp eax, ebp
jne 0x401416
push esi
mov esi, dword [ebx + 0x30]
add esi, dword [esp + 0x90]
mov dword [ebx], 0x60010001
mov eax, esi
and eax, 7
je 0x401217
push ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x90]
mov edx, 8
sub edx, eax
push edx
push esi
lea eax, [esp + 0x3c]
push eax
push ebp
push ebp
push ebp
push ecx
call dword [0x403004]
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x401415
mov ebp, dword [esp + 0x30]
add dword [esp + 0x24], ebp
add esi, ebp
push edi
jmp 0x401220
mov eax, dword [esp + 0x98]
sub eax, ebp
cmp dword [esp + 0x18], eax
jbe 0x401233
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x98]
push ecx
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
push eax
call dword [0x403004]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401414
mov edi, dword [esp + 0x34]
add dword [esp + 0x28], edi
add ebp, edi
add dword [ebx + 0x40], edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
adc dword [ebx + 0x44], eax
mov eax, 0x38e38e39
mul edi
shr edx, 4
lea eax, [edx + edx*8]
add eax, eax
add eax, eax
add eax, eax
sub edi, eax
mov dword [esp + 0x24], edi
test eax, eax
je 0x4013a0
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x4c], ebp
mov ebp, dword [ecx + 0x10]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x50], ebp
mov ebp, dword [ecx + 0x14]
mov dword [esp + 0x54], ebp
mov ebp, dword [ecx + 0x18]
mov dword [esp + 0x58], ebp
mov ebp, dword [ecx + 0x1c]
mov dword [esp + 0x5c], ebp
mov ebp, dword [ecx + 0x20]
mov dword [esp + 0x60], ebp
mov ebp, dword [ecx + 0x24]
mov dword [esp + 0x64], ebp
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x68], ebp
mov ebp, dword [ecx + 0x2c]
mov dword [esp + 0x6c], ebp
mov ebp, dword [ecx + 0x30]
mov dword [esp + 0x70], ebp
mov ebp, dword [ecx + 0x34]
mov dword [esp + 0x74], ebp
mov ebp, dword [ecx + 0x38]
mov dword [esp + 0x78], ebp
mov ebp, dword [ecx + 0x3c]
mov dword [esp + 0x7c], ebp
mov ebp, dword [ecx + 0x40]
mov dword [esp + 0x80], ebp
mov ebp, dword [ecx + 0x44]
mov dword [esi], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x50]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x64]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x70]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x78]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x80]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ebp
add ecx, 0x48
add esi, 0x48
sub eax, 0x48
jne 0x4012a2
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0x24]
mov dword [esi], 0xba5e00
mov dword [esi + 4], 0x66128300
mov dword [esi + 8], 0x11d5d3d
cmp dword [ebx + 8], 1
je 0x401448
cmp ebp, dword [esp + 0x98]
jne 0x401220
test edi, edi
je 0x4013dc
sub esi, ecx
mov al, byte [ecx]
mov byte [ecx + esi], al
inc ecx
sub edi, 1
jne 0x4013d1
lea ecx, [esp + 0x38]
push ecx
push 0
mov dword [esp + 0x40], 0xffdbfa98
mov dword [esp + 0x44], 0xffffffff
call dword [0x40300c]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [eax], edx
mov dword [eax + 4], ecx
add dword [ebx + 0x30], ebp
adc dword [ebx + 0x34], 0
pop edi
pop esi
cmp dword [esp + 8], 0
pop ebp
je 0x40143d
push 0x8000
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x20], 0
call dword [0x40303c]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x78
ret 0x14
mov dword [esp + 0x14], 0x60010002
jmp 0x401414