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

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
cmp eax, esi
je 0x4090c9
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
lea edi, [ebx + 0x14]
mov ecx, dword [ebx - 0xa4]
mov eax, dword [esi - 0xa4]
sub esi, 0xa4
sub ebx, 0xa4
sub edi, 0xa4
cmp ecx, eax
je 0x408f0d
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x408ee7
mov edx, dword [0x4881a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x408eee
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x408efc
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
call fcn.00403710
jmp 0x408f0d
mov ecx, ebx
call fcn.004039a0
mov eax, dword [esi]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call ebp
lea ecx, [esi + 8]
push ecx
lea ecx, [edi - 0xc]
call fcn.004089c0
mov edx, dword [esi + 0xc]
mov dword [edi - 8], edx
mov eax, dword [esi + 0x10]
mov dword [edi - 4], eax
mov ecx, dword [edi]
mov eax, dword [esi + 0x14]
cmp ecx, eax
je 0x408f69
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x408f42
mov edx, dword [0x4881a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x408f49
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x408f57
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.00403710
jmp 0x408f69
mov ecx, edi
call fcn.004039a0
mov eax, dword [esi + 0x14]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call ebp
lea edx, [esi + 0x18]
lea ecx, [edi + 4]
push edx
call fcn.004089c0
lea eax, [esi + 0x1c]
lea ecx, [edi + 8]
push eax
call fcn.004089c0
lea ecx, [esi + 0x20]
push ecx
lea ecx, [edi + 0xc]
call fcn.004089c0
lea edx, [esi + 0x24]
lea ecx, [edi + 0x10]
push edx
call fcn.004089c0
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x2c]
push ecx
lea ecx, [edi + 0x18]
mov dword [edi + 0x14], eax
call fcn.004089c0
lea edx, [esi + 0x30]
lea ecx, [edi + 0x1c]
push edx
call fcn.004089c0
lea eax, [esi + 0x34]
lea ecx, [edi + 0x20]
push eax
call fcn.004089c0
lea ecx, [esi + 0x38]
push ecx
lea ecx, [edi + 0x24]
call fcn.004089c0
lea edx, [esi + 0x3c]
lea ecx, [edi + 0x28]
push edx
call fcn.004089c0
lea eax, [esi + 0x40]
lea ecx, [edi + 0x2c]
push eax
call fcn.004089c0
lea ecx, [esi + 0x44]
push ecx
lea ecx, [edi + 0x30]
call fcn.004089c0
lea edx, [esi + 0x48]
lea ecx, [edi + 0x34]
push edx
call fcn.004089c0
lea eax, [esi + 0x4c]
lea ecx, [edi + 0x38]
push eax
call fcn.004089c0
lea ecx, [esi + 0x50]
push ecx
lea ecx, [edi + 0x3c]
call fcn.004089c0
lea edx, [esi + 0x54]
lea ecx, [edi + 0x40]
push edx
call fcn.004089c0
lea eax, [esi + 0x58]
lea ecx, [edi + 0x44]
push eax
call fcn.004095c0
mov ecx, dword [esi + 0x68]
mov dword [edi + 0x54], ecx
mov edx, dword [esi + 0x6c]
mov dword [edi + 0x58], edx
mov eax, dword [esi + 0x70]
mov dword [edi + 0x5c], eax
mov ecx, dword [esi + 0x74]
mov dword [edi + 0x60], ecx
mov edx, dword [esi + 0x78]
mov dword [edi + 0x64], edx
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x68], eax
mov ecx, dword [esi + 0x80]
mov dword [edi + 0x6c], ecx
mov edx, dword [esi + 0x84]
mov dword [edi + 0x70], edx
mov eax, dword [esi + 0x88]
mov dword [edi + 0x74], eax
mov ecx, dword [esi + 0x8c]
mov dword [edi + 0x78], ecx
mov edx, dword [esi + 0x90]
lea eax, [esi + 0x94]
lea ecx, [edi + 0x80]
push eax
mov dword [edi + 0x7c], edx
call fcn.004089c0
mov ecx, dword [esi + 0x98]
mov dword [edi + 0x84], ecx
mov edx, dword [esi + 0x9c]
mov dword [edi + 0x88], edx
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x408eb1
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret