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

Disassembly:
push 0xffffffffffffffff
push 0x42b1c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0x15c], 1
call fcn.00417030
mov ecx, dword [esp + 0x160]
push ebx
push 0x42c5d4
call fcn.004027cf
mov esi, dword [esp + 0x44]
mov ebp, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov edi, 0xf
cmp esi, ebx
je 0x41791d
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x4178fb
push 2
push 0x42dcf0
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.004027cf
push 1
push 0x42dcec
lea ecx, [esp + 0x5c]
mov byte [esp + 0x160], 2
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.004027cf
push ebp
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x120]
push edx
mov byte [esp + 0x164], 3
call fcn.00402a92
lea ecx, [esp + 0x98]
push ecx
push eax
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x170], 4
call fcn.00402a92
add esp, 0x18
mov ecx, dword [esp + 0x160]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x164], 5
call fcn.0040273a
mov eax, dword [esp + 0xdc]
mov esi, 0x10
cmp eax, esi
jb 0x41754e
mov eax, dword [esp + 0xc8]
push eax
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0x130], esi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
jb 0x41757c
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
jb 0x4175a4
mov edx, dword [esp + 0x58]
push edx
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x4175c9
mov eax, dword [esp + 0x90]
push eax
call fcn.0041c5ad
add esp, 4
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push ebp
mov byte [esp + 0x188], 7
mov byte [ecx + 4], bl
call fcn.004026ab
mov ecx, dword [esp + 0x74]
call fcn.004170d0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
mov ebp, eax
mov dword [esp + 0x10], ebx
sub ebp, esi
lea esp, [esp]
cmp eax, ebx
je 0x417833
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x10]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x41782f
push 1
push 0x42db54
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.004027cf
push 1
push 0x42cb74
lea ecx, [esp + 0x78]
mov byte [esp + 0x160], 8
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.004027cf
lea eax, [esp + 0x70]
push eax
lea ecx, [esi + ebp]
push ecx
lea edx, [esp + 0x13c]
push edx
mov byte [esp + 0x164], 9
call fcn.00402a92
push esi
push eax
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x170], 0xa
call fcn.00402a92
lea ecx, [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0x100]
push edx
mov byte [esp + 0x17c], 0xb
call fcn.00402a92
add esp, 0x24
mov ecx, dword [esp + 0x160]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x164], 0xc
call fcn.0040273a
cmp dword [esp + 0xf8], 0x10
jb 0x417747
mov eax, dword [esp + 0xe4]
push eax
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0x114], 0x10
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
jb 0x417776
mov ecx, dword [esp + 0x100]
push ecx
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0x14c], 0x10
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
jb 0x4177a5
mov edx, dword [esp + 0x138]
push edx
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
jb 0x4177d1
mov eax, dword [esp + 0x74]
push eax
call fcn.0041c5ad
add esp, 4
cmp dword [esp + 0xc0], 0x10
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0x158], 7
jb 0x417805
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0041c5ad
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc ecx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0x10], ecx
add esi, 0x1c
jmp 0x417640
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x41787a
mov ebp, dword [esp + 0x38]
cmp esi, ebp
je 0x41786d
add esi, 0x18
cmp dword [esi], 0x10
jb 0x417857
mov eax, dword [esi - 0x14]
push eax
call fcn.0041c5ad
add esp, 4
mov dword [esi], edi
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, ebp
jne 0x417846
mov esi, dword [esp + 0x34]
push esi
call fcn.0041c5ad
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x158], 1
je 0x4178d0
mov ebp, dword [esp + 0x24]
cmp eax, ebp
je 0x4178c7
lea esi, [eax + 0x18]
lea ecx, [ecx]
cmp dword [esi], 0x10
jb 0x4178b5
mov eax, dword [esi - 0x14]
push eax
call fcn.0041c5ad
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esi], edi
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, ebp
jne 0x4178a0
push eax
call fcn.0041c5ad
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
inc ecx
add eax, 0x1c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov ebp, eax
jmp 0x417461
cmp esi, ebx
je 0x41791d
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
push esi
call fcn.00402aec
push esi
call fcn.0041c5ad
add esp, 0x14
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret 4