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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5e60
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x513624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x158]
call fcn.004169c0
lea eax, [edi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, dword [edi + 0x134]
test esi, esi
je 0x416728
mov ecx, esi
call fcn.00485770
push 0x200a8
push esi
call fcn.00463d78
add esp, 8
mov dword [edi + 0x134], 0
mov ecx, dword [edi + 0x130]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x416764
call fcn.00484d20
mov esi, dword [edi + 0x130]
test esi, esi
je 0x41675a
mov ecx, esi
call fcn.00484ce0
push 4
push esi
call fcn.00463d78
add esp, 8
mov dword [edi + 0x130], 0
mov ecx, dword [edi + 0x120]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x4167a5
mov eax, dword [edi + 0x10c]
inc ecx
cmp ecx, 0x1000
jb 0x41679b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416967
mov eax, edx
push ecx
push eax
call fcn.00463d78
add esp, 8
mov dword [edi + 0x11c], 0
mov dword [edi + 0x120], 0xf
mov byte [edi + 0x10c], 0
mov ecx, dword [edi + 0xf8]
cmp ecx, 0x10
jb 0x4167fa
mov eax, dword [edi + 0xe4]
inc ecx
cmp ecx, 0x1000
jb 0x4167f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416967
mov eax, edx
push ecx
push eax
call fcn.00463d78
add esp, 8
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0xf
mov byte [edi + 0xe4], 0
mov ecx, dword [edi + 0xdc]
cmp ecx, 0x10
jb 0x41684f
mov eax, dword [edi + 0xc8]
inc ecx
cmp ecx, 0x1000
jb 0x416845
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416967
mov eax, edx
push ecx
push eax
call fcn.00463d78
add esp, 8
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0xf
mov byte [edi + 0xc8], 0
mov ecx, dword [edi + 0xc4]
cmp ecx, 0x10
jb 0x4168a4
mov eax, dword [edi + 0xb0]
inc ecx
cmp ecx, 0x1000
jb 0x41689a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416967
mov eax, edx
push ecx
push eax
call fcn.00463d78
add esp, 8
mov dword [edi + 0xc0], 0
lea ecx, [edi + 0x98]
mov dword [edi + 0xc4], 0xf
mov byte [edi + 0xb0], 0
call fcn.00405450
lea ecx, [edi + 0x80]
call fcn.00405450
mov esi, dword [edi + 0x78]
mov dword [ebp - 4], 1
test esi, esi
je 0x416901
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.004545d0
test al, al
je 0x416901
xor eax, eax
test ebx, ebx
cmovne eax, esi
push eax
call fcn.0044b290
add esp, 4
lea esi, [edi + 0x40]
push 0xffffff
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0042eb00
lea ecx, [esi + 0x20]
call fcn.00415760
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [edi + 0x3c]
lea esi, [edi + 0x18]
test ecx, ecx
je 0x416945
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
lea ecx, [edi + 0x10]
call fcn.00443510
lea ecx, [edi + 8]
call fcn.00443510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a52aa
int3