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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, edx
push edi
mov dword [ebp - 4], eax
and eax, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
lea edi, [edx - 1]
mov dword [ebp - 0x14], ecx
cmp edi, 2
jl 0x407778
lea ecx, [edi*8]
lea edx, [edi + edi*2]
sub ecx, edi
shl edx, 3
shl ecx, 2
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
nop dword [eax]
mov eax, dword [ebp - 0x14]
test byte [edi + eax], 4
mov eax, dword [ebp - 0xc]
je 0x40775f
test eax, eax
je 0x407719
mov eax, dword [esi + 0x2c]
mov ecx, 0x8000
mov edx, dword [ebp - 8]
or cx, word [eax + edx + 4]
mov eax, dword [ebx + 0x5c]
mov word [eax + edi*2], cx
jmp 0x407756
mov eax, dword [ebx + 0x58]
mov ecx, dword [edx + eax + 4]
test ecx, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 8]
je 0x40775c
push dword [ebp - 0x18]
mov dword [edx + eax + 4], 0
xor ecx, ecx
mov eax, dword [ebx + 0x58]
mov dword [edx + eax], 0
mov eax, dword [ebx + 0x5c]
mov word [eax + edi*2], cx
mov eax, dword [ebx + 0x60]
inc dword [eax + edi*4]
call fcn.0048b923
add esp, 4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
dec edi
sub ecx, 0x1c
sub edx, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
cmp edi, 2
jge 0x4076f0
mov edx, dword [ebp - 0x1c]
test eax, eax
je 0x407784
cmp dword [ebx + 0x20], edx
jae 0x407784
mov dword [ebx + 0x20], edx
mov ecx, dword [esi + 0x40]
test ecx, 0x20000
je 0x4077d1
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x4077c1
mov dword [eax], 0xffffffff
test dword [ebx + 0xc], 0x200000
je 0x4077ba
test ecx, 0x200000
je 0x4077c1
mov eax, dword [esi + 0x24]
mov dword [eax + 4], 0
mov dword [esi + 0x24], 0
or dword [esi + 0x40], 1
mov dword [esi + 0x3c], 0
jmp 0x40791c
test cl, 1
jne 0x407919
mov edi, dword [ebx + 0x6c]
mov dword [ebp - 0x14], edi
test eax, eax
jne 0x4077ed
xor edx, edx
mov ecx, esi
call fcn.00407070
test dword [ebx + 0xc], 0x80000
jne 0x407849
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp eax, 1
jb 0x407843
lea edi, [ecx + 0xc]
nop
mov ecx, dword [edi]
test byte [ecx + 6], 4
je 0x40782c
cmp dword [ecx + 8], 1
je 0x40782c
push ecx
call fcn.0048b923
mov edx, dword [ebp - 0x1c]
add esp, 4
jmp 0x407834
mov eax, dword [edx + 0x74]
mov dword [ecx], eax
mov dword [edx + 0x74], ecx
add edi, 8
sub dword [ebp - 0x10], 1
jne 0x407810
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ecx], 0
mov eax, dword [esi]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 1
test eax, eax
jne 0x4078bf
mov eax, dword [esi + 0x14]
sub eax, 4
cmp dword [eax], 0x1ffff
jbe 0x407889
push 0x80004
push eax
call fcn.0048ed87
add esp, 8
test eax, eax
je 0x407889
mov dword [eax], 0x1ffff
add eax, 4
mov dword [esi + 0x14], eax
cmp dword [ebx + 0x34], 0
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x44], 0
mov dword [ebp - 4], 0
je 0x407909
push dword [ebx + 0x94]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x407909
mov dword [eax + 4], 0
mov eax, dword [esi]
and dword [eax + 0x40], 0xffffffef
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4078eb
add eax, 0xfffffffc
push eax
call fcn.0048b923
add esp, 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4078fe
add eax, 0xfffffffc
push eax
call fcn.0048b923
add esp, 4
push dword [esi + 0x24]
call fcn.0048b923
add esp, 4
test edi, edi
je 0x407919
lea eax, [edi - 4]
push eax
call fcn.0048b923
add esp, 4
mov ecx, dword [ebp - 4]
test cl, 0x20
je 0x40792a
push esi
call fcn.0048b923
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret