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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x80]
test esi, esi
je 0x41145c
mov eax, dword [edi + 0x78]
push eax
mov dword [edi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x60]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0x1c]
mov esi, dword [edi + 8]
jmp 0x411475
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], edx
test esi, esi
je 0x411489
cmp esi, eax
je 0x41148e
call fcn.004465ac
cmp ebx, dword [esp + 0x14]
je 0x41159b
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x4114a5
call fcn.004465ac
mov edi, dword [ebx + 4]
test esi, esi
je 0x4114b0
mov eax, dword [esi]
jmp 0x4114b2
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4114bc
call fcn.004465ac
test esi, esi
jne 0x4114f6
call fcn.004465ac
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4114d1
call fcn.004465ac
mov eax, dword [edi + 8]
mov dword [eax + 0xb0], 0
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x4114eb
call fcn.004465ac
mov edi, dword [ebx + 4]
test esi, esi
je 0x4114fa
mov eax, dword [esi]
jmp 0x4114fc
mov eax, dword [esi]
jmp 0x4114c7
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x411506
call fcn.004465ac
test esi, esi
jne 0x411542
call fcn.004465ac
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x41151b
call fcn.004465ac
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41152a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x411537
call fcn.004465ac
mov edi, dword [ebx + 4]
test esi, esi
je 0x411546
mov eax, dword [esi]
jmp 0x411548
mov eax, dword [esi]
jmp 0x411511
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x411552
call fcn.004465ac
test esi, esi
jne 0x411582
call fcn.004465ac
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x411567
call fcn.004465ac
mov dword [edi + 8], 0
test esi, esi
jne 0x411577
call fcn.004465ac
mov ebx, dword [ebx + 4]
test esi, esi
je 0x411586
mov eax, dword [esi]
jmp 0x411588
mov eax, dword [esi]
jmp 0x41155d
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x411472
call fcn.004465ac
jmp 0x411472
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 4], ecx
mov dword [edi + 0x20], 0
cmp eax, dword [edi + 0x1c]
je 0x4115c6
mov esi, dword [eax]
push eax
call fcn.004462c0
add esp, 4
mov eax, esi
cmp esi, dword [edi + 0x1c]
jne 0x4115b4
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x38]
mov esi, dword [eax + 0x24]
nop
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx]
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x14], edx
test esi, esi
je 0x4115e7
cmp esi, eax
je 0x4115ec
call fcn.004465ac
cmp edi, dword [esp + 0x14]
je 0x4116f3
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x411603
call fcn.004465ac
mov ebx, dword [edi + 4]
test esi, esi
je 0x41160e
mov eax, dword [esi]
jmp 0x411610
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x41161a
call fcn.004465ac
test esi, esi
jne 0x411654
call fcn.004465ac
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x41162f
call fcn.004465ac
mov eax, dword [ebx + 8]
mov dword [eax + 0xb0], 0
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x411649
call fcn.004465ac
mov ebx, dword [edi + 4]
test esi, esi
je 0x411658
mov eax, dword [esi]
jmp 0x41165a
mov eax, dword [esi]
jmp 0x411625
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x411664
call fcn.004465ac
test esi, esi
jne 0x41169a
call fcn.004465ac
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x411679
call fcn.004465ac
mov ecx, dword [ebx + 8]
push ecx
call fcn.00413d40
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x41168f
call fcn.004465ac
mov ebx, dword [edi + 4]
test esi, esi
je 0x41169e
mov eax, dword [esi]
jmp 0x4116a0
mov eax, dword [esi]
jmp 0x41166f
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4116aa
call fcn.004465ac
test esi, esi
jne 0x4116da
call fcn.004465ac
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4116bf
call fcn.004465ac
mov dword [ebx + 8], 0
test esi, esi
jne 0x4116cf
call fcn.004465ac
mov edi, dword [edi + 4]
test esi, esi
je 0x4116de
mov eax, dword [esi]
jmp 0x4116e0
mov eax, dword [esi]
jmp 0x4116b5
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4115d0
call fcn.004465ac
jmp 0x4115d0
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x38]
mov dword [ecx + 4], ecx
mov dword [ebx + 0x3c], 0
cmp eax, dword [ebx + 0x38]
je 0x411722
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.004462c0
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x38]
jne 0x411710
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4