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

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
cmp ebx, eax
je 0x40e13d
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esi, [ebx + 0x14]
lea ebp, [edi + 0x18]
mov ecx, dword [ebx]
mov eax, dword [edi]
cmp ecx, eax
je 0x40def4
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x40deca
mov edx, dword [0x4c0084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40ded1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40dedf
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
call fcn.00404780
jmp 0x40def4
mov ecx, ebx
call fcn.00404ac0
mov eax, dword [edi]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [edi + 8]
lea ecx, [esi - 0xc]
push eax
call fcn.0040d220
mov ecx, dword [edi + 0xc]
mov dword [esi - 8], ecx
mov edx, dword [edi + 0x10]
mov dword [esi - 4], edx
mov ecx, dword [esi]
mov eax, dword [edi + 0x14]
cmp ecx, eax
je 0x40df54
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x40df29
mov edx, dword [0x4c0084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40df30
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40df3e
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, esi
call fcn.00404780
jmp 0x40df54
mov ecx, esi
call fcn.00404ac0
mov eax, dword [edi + 0x14]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
lea ecx, [esi + 4]
call fcn.0040d220
lea eax, [edi + 0x1c]
lea ecx, [esi + 8]
push eax
call fcn.0040d220
lea eax, [edi + 0x20]
lea ecx, [esi + 0xc]
push eax
call fcn.0040d220
lea eax, [edi + 0x24]
lea ecx, [esi + 0x10]
push eax
call fcn.0040d220
mov ecx, dword [edi + 0x28]
lea eax, [edi + 0x2c]
mov dword [esi + 0x14], ecx
push eax
lea ecx, [esi + 0x18]
call fcn.0040d220
lea eax, [edi + 0x30]
lea ecx, [esi + 0x1c]
push eax
call fcn.0040d220
lea eax, [edi + 0x34]
lea ecx, [esi + 0x20]
push eax
call fcn.0040d220
lea eax, [edi + 0x38]
lea ecx, [esi + 0x24]
push eax
call fcn.0040ed10
lea eax, [edi + 0x48]
lea ecx, [esi + 0x34]
push eax
call fcn.0040d220
lea eax, [edi + 0x4c]
lea ecx, [esi + 0x38]
push eax
call fcn.0040d220
lea eax, [edi + 0x50]
lea ecx, [esi + 0x3c]
push eax
call fcn.0040d220
lea eax, [edi + 0x54]
lea ecx, [esi + 0x40]
push eax
call fcn.0040d220
lea eax, [edi + 0x58]
lea ecx, [esi + 0x44]
push eax
call fcn.0040d220
lea eax, [edi + 0x5c]
lea ecx, [esi + 0x48]
push eax
call fcn.0040d220
lea eax, [edi + 0x60]
lea ecx, [esi + 0x4c]
push eax
call fcn.0040d220
lea eax, [edi + 0x64]
lea ecx, [esi + 0x50]
push eax
call fcn.0040d220
lea eax, [edi + 0x68]
lea ecx, [esi + 0x54]
push eax
call fcn.0040ed10
mov edx, dword [edi + 0x78]
mov dword [esi + 0x64], edx
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x68], eax
mov ecx, dword [edi + 0x80]
mov dword [esi + 0x6c], ecx
mov edx, dword [edi + 0x84]
mov dword [esi + 0x70], edx
mov eax, dword [edi + 0x88]
mov dword [esi + 0x74], eax
mov ecx, dword [edi + 0x8c]
mov dword [esi + 0x78], ecx
mov edx, dword [edi + 0x90]
mov dword [esi + 0x7c], edx
mov eax, dword [edi + 0x94]
mov dword [esi + 0x80], eax
mov ecx, dword [edi + 0x98]
mov dword [esi + 0x84], ecx
mov edx, dword [edi + 0x9c]
mov dword [esi + 0x88], edx
mov eax, dword [edi + 0xa0]
mov dword [esi + 0x8c], eax
mov ecx, dword [edi + 0xa4]
lea eax, [edi + 0xa8]
mov dword [esi + 0x90], ecx
push eax
lea ecx, [esi + 0x94]
call fcn.0040d220
mov edx, dword [edi + 0xac]
mov dword [esi + 0x98], edx
mov eax, dword [edi + 0xb0]
mov dword [esi + 0x9c], eax
mov ecx, dword [edi + 0xb4]
lea eax, [edi + 0xb8]
mov dword [esi + 0xa0], ecx
push eax
lea ecx, [esi + 0xa4]
call fcn.0040d220
mov edx, dword [edi + 0xc0]
mov dword [esi + 0xac], edx
mov eax, dword [edi + 0xc4]
mov dword [esi + 0xb0], eax
mov ecx, dword [edi + 0xc8]
mov dword [esi + 0xb4], ecx
mov edx, dword [edi + 0xcc]
lea eax, [edi + 0xd0]
lea ecx, [esi + 0xbc]
push eax
mov dword [esi + 0xb8], edx
call fcn.0040ed10
mov eax, dword [esp + 0x18]
add ebx, 0xe0
add esi, 0xe0
cmp ebx, eax
jne 0x40deae
pop edi
pop esi
pop ebp
pop ebx
ret