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

Disassembly:
push esi
push ebx
push ebp
fldcw word [0x58ac6c]
sub esp, 0x50
mov edx, edi
xor eax, eax
mov edi, esp
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, dword [0x58ac74]
mov ebp, dword fs:[0x2c]
mov ebp, dword [ebp + ecx*4]
xor eax, eax
inc eax
lock xadd dword [ebp + 0x10], eax
push eax
push 0x5bd5fc
push 0
push 0
push dword [ebp]
mov dword [ebp], esp
cmp dword [ebp + 0xc], 0
jne 0x5487eb
push dword [esp + 0x74]
push dword [esp]
mov eax, dword [esp]
test eax, eax
je 0x4078c2
mov eax, dword [eax]
mov dword [esp + 0x28], 0x808fffff
call dword [eax + 4]
lea esp, [esp + 4]
push dword [esp + 0x78]
mov edx, dword [esp]
mov dword [esp + 0x54], edx
lea esp, [esp + 4]
nop dword [eax]
nop dword [eax]
push dword [esp + 0x74]
lea eax, [esp + 0x5c]
push eax
push dword [esp + 4]
mov eax, dword [esp]
test eax, eax
je 0x40791b
mov eax, dword [eax]
mov dword [esp + 0x2c], 0x80c001e6
call dword [eax + 0x29c]
mov dword [esp + 0xc], eax
cmp eax, 0
jl 0x407906
push dword [esp + 0x5c]
push dword [esp]
mov eax, dword [esp]
test eax, eax
je 0x4078fc
mov eax, dword [eax]
mov dword [esp + 0x2c], 0x80c001e6
call dword [eax + 0x34]
mov dword [esp + 0x10], eax
cmp eax, 0
jl 0x4078da
lea ecx, [esp + 0x60]
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
je 0x40778e
push eax
mov eax, dword [eax]
mov dword [esp + 0x2c], 0x80c001e6
call dword [eax + 8]
lea esp, [esp + 8]
nop dword [eax]
push dword [esp + 0x50]
push dword [esp + 0x78]
mov eax, dword [esp]
add eax, 0x8c
mov eax, dword [eax]
push eax
mov eax, dword [esp]
test eax, eax
je 0x4077c1
push eax
mov eax, dword [eax]
mov dword [esp + 0x30], 0x810001e7
call dword [eax + 4]
lea esi, [esp + 0x6c]
mov eax, dword [esi]
mov ebx, dword [esp]
mov dword [esi], ebx
push 0
push dword [esp + 0xc]
push 0x150
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x3c], 0x81c001e7
call fcn.00426dfe
push eax
mov edx, dword [esp]
mov dword [esp + 0x6c], edx
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jne 0x407936
push dword [esp + 0x6c]
mov edx, dword [esp]
mov dword [esp + 0x68], edx
push dword [esp + 0x74]
push 0x80000030
push dword [esp + 4]
mov eax, dword [esp + 0x18]
add eax, 0x8c
push eax
mov eax, dword [esp + 0x1c]
add eax, 0x8c
add eax, 0xffffff74
push eax
push 0x564088
mov dword [esp + 0x4c], 0x82c001e7
call fcn.0054a071
cmp eax, 0
jl 0x407925
lea esp, [esp + 0x18]
jmp 0x40785e
lea ecx, [esp + 0x58]
mov eax, dword [ecx]
test eax, eax
je 0x40787a
push eax
mov eax, dword [eax]
mov dword [esp + 0x24], 0x804001e8
call dword [eax + 8]
push dword [esp + 0x54]
mov edx, dword [esp]
lea eax, [esp + 0x80]
mov eax, dword [eax]
mov dword [eax], edx
lea esp, [esp + 4]
push dword [esp + 0x74]
push dword [esp]
mov eax, dword [esp]
test eax, eax
je 0x99da123c
mov eax, dword [eax]
mov dword [esp + 0x28], 0x808001e8
call dword [eax + 8]
lea esp, [esp + 4]
pop ecx
mov dword [ebp], ecx
pop eax
add esp, 0x5c
pop ebp
pop ebx
pop esi
ret 0xc
pop edx
pop edx
mov eax, 0x800a005b
push eax
push eax
push 0x12000
push 0x39001e2
call fcn.00560734
pop edx
pop edx
mov dword [ebp + 0x1c], eax
mov eax, dword [esp - 8]
mov dword [ebp + 0x14], eax
mov eax, 0x564078
mov dword [ebp + 0x18], eax
push eax
push eax
push 0x91000
push 0x43801e6
jmp 0x4078d5
add esp, 0xc
mov eax, 0x800a005b
jmp 0x4078ee
pop edx
mov dword [ebp + 0x1c], eax
mov eax, dword [esp - 4]
mov dword [ebp + 0x14], eax
mov eax, 0x564068
mov dword [ebp + 0x18], eax
jmp 0x4078ee
add esp, 0xc
mov eax, 0x800a005b
jmp 0x4078ee
add esp, 0x18
push eax
push eax
push 0xc9000
push 0x8c001e7
jmp 0x4078d5
add esp, 0x10
mov eax, 0xeaeaea02
jmp 0x407928