Function at 0x43e460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4661e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
lea edi, [ebp + 0x18]
push ecx
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.0043b090
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0xc]
cmp esi, eax
jne 0x43e4c6
push 0x470644
push 0x4885fc
call fcn.004048e0
add esp, 8
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [esi + 0x10]
cmp eax, 3
ja case.default.0x43e4d2
jmp dword [eax*4 + 0x43e6dc]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x14]
push 0
push edx
push eax
call fcn.004386d0
add esp, 0xc
test eax, eax
je case.default.0x43e4d2
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [esp + 0x10]
mov dword [esi + 0x10], 1
call fcn.00406e10
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [ebp + 0x24]
mov dword [esp + 0x34], 0
call fcn.0041f1c0
mov ecx, eax
add ecx, 0x14
call fcn.0043c740
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push 0x470628
push 0x4885fc
call fcn.004048e0
add esp, 8
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea eax, [ebp + 0x30]
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp + 0x48]
test al, al
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], 0x470624
jne 0x43e5a6
mov dword [esp + 0xc], 0x4699b4
push ebx
lea edi, [ebp + 4]
lea ebx, [ebp + 0x24]
push edi
mov ecx, ebx
call fcn.0041f1c0
mov ecx, dword [eax + 8]
add eax, 4
test ecx, ecx
jne 0x43e5c3
xor eax, eax
jmp 0x43e5cb
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
mov edx, dword [esp + 0x10]
push edx
sub eax, dword [esi + 0x20]
push eax
push 0x4705f8
push 0x4885fc
call fcn.004014b0
add esp, 0x10
push edi
mov ecx, ebx
call fcn.0041f1c0
mov ecx, dword [eax + 8]
add eax, 4
test ecx, ecx
jne 0x43e5fc
xor eax, eax
jmp 0x43e604
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp dword [esi + 0x20], eax
je 0x43e63f
mov eax, dword [esi + 0x18]
push edi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0041f1c0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.00438ff0
mov ecx, dword [esi + 0x20]
add esp, 0x18
add ecx, eax
mov dword [esi + 0x20], ecx
mov al, byte [ebp + 0x48]
test al, al
je 0x43e681
push edi
mov ecx, ebx
call fcn.0041f1c0
mov ecx, eax
add ecx, 4
call fcn.0041dc90
cmp dword [esi + 0x20], eax
jne 0x43e681
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00438770
add esp, 8
test eax, eax
je 0x43e681
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x38]
push eax
call fcn.0043c3b0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x30]
push 1
push edx
push eax
call fcn.004386d0
add esp, 0xc
test eax, eax
je case.default.0x43e4d2
push esi
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.0043c3b0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4