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

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test ebx, ebx
je 0x4085c2
cmp dword [ebx], 0
je 0x4085c2
cmp dword [ebx + 0x10], 0
je 0x4085c2
lea eax, [esi + 0x78]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x4080d0
call fcn.00470dee
mov eax, esi
mov esi, dword [eax]
mov ebp, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov edi, edi
mov edi, dword [eax + 0x10]
cmp dword [eax + 0xc], edi
jbe 0x4080f1
call fcn.00470dee
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test esi, esi
je 0x4080fb
cmp esi, eax
je 0x408100
call fcn.00470dee
cmp ebp, edi
je 0x408266
test esi, esi
jne 0x40817a
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40811d
call fcn.00470dee
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [ecx]
push eax
push edx
call fcn.0046ff94
add esp, 8
test eax, eax
jne 0x408159
test esi, esi
jne 0x40817e
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x408147
call fcn.00470dee
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 0x10]
call fcn.0041f770
test eax, eax
jg 0x408186
test esi, esi
jne 0x408182
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40816e
call fcn.00470dee
mov eax, dword [esp + 0x1c]
add ebp, 4
jmp 0x4080e0
mov eax, dword [esi]
jmp 0x408113
mov eax, dword [esi]
jmp 0x40813d
mov eax, dword [esi]
jmp 0x408164
lea esi, [esp + 0x10]
mov dword [esp + 0x14], ebp
call fcn.0040b910
mov edi, dword [ebx + 8]
mov esi, dword [eax]
call fcn.00406b80
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0xc]
mov esi, dword [eax]
call fcn.00406bb0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x10]
mov esi, dword [eax]
call fcn.00406be0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x14]
mov esi, dword [eax]
call fcn.00406c10
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x18]
mov esi, dword [eax]
call fcn.00406c40
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x1c]
mov esi, dword [eax]
call fcn.00406c70
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x20]
mov esi, dword [eax]
call fcn.00406ca0
lea esi, [esp + 0x10]
call fcn.0040b910
mov ecx, dword [eax]
mov edx, dword [ebx + 0x28]
mov dword [ecx + 0x28], edx
call fcn.0040b910
mov eax, dword [eax]
mov cl, byte [ebx + 0x44]
mov byte [eax + 0x44], cl
call fcn.0040b910
mov edx, dword [eax]
mov eax, dword [ebx + 0x38]
mov dword [edx + 0x38], eax
call fcn.0040b910
mov ecx, dword [eax]
mov edx, dword [ebx + 0x3c]
mov dword [ecx + 0x3c], edx
call fcn.0040b910
mov eax, dword [eax]
mov ecx, dword [ebx + 0x30]
mov dword [eax + 0x30], ecx
call fcn.0040b910
mov edx, dword [eax]
mov eax, dword [ebx + 0x34]
mov dword [edx + 0x34], eax
jmp 0x4085b7
mov edi, dword [esp + 0x1c]
add edi, 0x30
lea esi, [esp + 0x10]
mov dword [esp + 0x14], ebp
call fcn.004374e0
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x40]
add eax, 0x30
cmp dword [eax + 0xc], edi
jbe 0x408296
call fcn.00470dee
mov eax, dword [esp + 0x1c]
add eax, 0x30
mov eax, dword [eax]
test esi, esi
je 0x4082a7
cmp esi, eax
je 0x4082ac
call fcn.00470dee
cmp ebp, edi
je 0x40840e
test esi, esi
jne 0x408322
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4082c9
call fcn.00470dee
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov eax, dword [edx]
push ecx
push eax
call fcn.0046ff94
add esp, 8
test eax, eax
jne 0x408305
test esi, esi
jne 0x408326
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4082f3
call fcn.00470dee
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x10]
call fcn.0041f770
test eax, eax
jg 0x40832e
test esi, esi
jne 0x40832a
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40831a
call fcn.00470dee
add ebp, 4
jmp 0x408282
mov eax, dword [esi]
jmp 0x4082bf
mov eax, dword [esi]
jmp 0x4082e9
mov eax, dword [esi]
jmp 0x408310
lea esi, [esp + 0x10]
mov dword [esp + 0x14], ebp
call fcn.0040b910
mov edi, dword [ebx + 8]
mov esi, dword [eax]
call fcn.00406b80
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0xc]
mov esi, dword [eax]
call fcn.00406bb0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x10]
mov esi, dword [eax]
call fcn.00406be0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x14]
mov esi, dword [eax]
call fcn.00406c10
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x18]
mov esi, dword [eax]
call fcn.00406c40
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x1c]
mov esi, dword [eax]
call fcn.00406c70
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x20]
mov esi, dword [eax]
call fcn.00406ca0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edx, dword [eax]
mov eax, dword [ebx + 0x28]
mov dword [edx + 0x28], eax
call fcn.0040b910
mov ecx, dword [eax]
mov dl, byte [ebx + 0x44]
mov byte [ecx + 0x44], dl
call fcn.0040b910
mov eax, dword [eax]
mov ecx, dword [ebx + 0x38]
mov dword [eax + 0x38], ecx
call fcn.0040b910
mov edx, dword [eax]
mov eax, dword [ebx + 0x3c]
mov dword [edx + 0x3c], eax
call fcn.0040b910
mov ecx, dword [eax]
mov edx, dword [ebx + 0x30]
mov dword [ecx + 0x30], edx
call fcn.0040b910
mov eax, dword [eax]
mov ecx, dword [ebx + 0x34]
mov dword [eax + 0x34], ecx
jmp 0x4085b7
mov edi, dword [esp + 0x1c]
add edi, 0x18
lea esi, [esp + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
call fcn.004374e0
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, edi
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0xc], edi
jbe 0x408445
call fcn.00470dee
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test esi, esi
je 0x40844f
cmp esi, eax
je 0x408454
call fcn.00470dee
cmp ebp, edi
je 0x4085b3
test esi, esi
jne 0x4084ca
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x408471
call fcn.00470dee
mov edx, dword [ebx]
mov eax, dword [ebp]
mov ecx, dword [eax]
push edx
push ecx
call fcn.0046ff94
add esp, 8
test eax, eax
jne 0x4084ad
test esi, esi
jne 0x4084ce
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40849b
call fcn.00470dee
mov edx, dword [ebp]
mov edx, dword [edx + 0x10]
mov ecx, dword [ebx + 0x10]
call fcn.0041f770
test eax, eax
jg 0x4084d6
test esi, esi
jne 0x4084d2
call fcn.00470dee
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4084c2
call fcn.00470dee
add ebp, 4
jmp 0x408430
mov eax, dword [esi]
jmp 0x408467
mov eax, dword [esi]
jmp 0x408491
mov eax, dword [esi]
jmp 0x4084b8
lea esi, [esp + 0x10]
mov dword [esp + 0x14], ebp
call fcn.0040b910
mov edi, dword [ebx + 8]
mov esi, dword [eax]
call fcn.00406b80
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0xc]
mov esi, dword [eax]
call fcn.00406bb0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x10]
mov esi, dword [eax]
call fcn.00406be0
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x14]
mov esi, dword [eax]
call fcn.00406c10
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x18]
mov esi, dword [eax]
call fcn.00406c40
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x1c]
mov esi, dword [eax]
call fcn.00406c70
lea esi, [esp + 0x10]
call fcn.0040b910
mov edi, dword [ebx + 0x20]
mov esi, dword [eax]
call fcn.00406ca0
lea esi, [esp + 0x10]
call fcn.0040b910
mov eax, dword [eax]
mov ecx, dword [ebx + 0x28]
mov dword [eax + 0x28], ecx
call fcn.0040b910
mov edx, dword [eax]
mov al, byte [ebx + 0x44]
mov byte [edx + 0x44], al
call fcn.0040b910
mov ecx, dword [eax]
mov edx, dword [ebx + 0x38]
mov dword [ecx + 0x38], edx
call fcn.0040b910
mov eax, dword [eax]
mov ecx, dword [ebx + 0x3c]
mov dword [eax + 0x3c], ecx
call fcn.0040b910
mov edx, dword [eax]
mov eax, dword [ebx + 0x30]
mov dword [edx + 0x30], eax
call fcn.0040b910
mov ecx, dword [eax]
mov edx, dword [ebx + 0x34]
mov dword [ecx + 0x34], edx
jmp 0x4085b7
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xc
ret 4