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

Disassembly:
push 0xffffffffffffffff
push 0x4716c0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x7c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
xor ebp, ebp
test al, al
je 0x41a295
cmp dword [edi + 0x160], ebp
jne 0x41a295
cmp dword [edi + 0x1c], ebp
jne 0x41a295
cmp dword [edi + 0x168], ebp
je 0x41a5e3
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x78], 2
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
cmp dword [edi + 0x1c], ebp
je 0x41a35b
cmp dword [edi + 0x150], ebp
je 0x41a35b
movzx cx, byte [edi + 0x15d]
movzx ax, byte [edi + 0x159]
mov ch, byte [edi + 0x15c]
mov ah, byte [edi + 0x158]
push 4
lea edx, [esp + 0x80]
push edx
push ebp
mov word [esp + 0x30], bp
mov word [esp + 0x36], cx
mov ecx, edi
mov word [esp + 0x32], bp
mov word [esp + 0x34], ax
mov dword [esp + 0x38], 0x21ffffff
mov word [esp + 0x8a], pe_nt_image_headers32
call fcn.00412aa0
mov ecx, dword [edi + 0xf0]
push 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00449cc0
mov dword [edi + 0x1c], ebp
jmp 0x41a8b8
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
jne 0x41a367
xor eax, eax
jmp 0x41a370
mov eax, dword [esp + 0x4c]
sub eax, ecx
sar eax, 4
mov ecx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [edi + 0xc0]
cmp eax, ebp
mov dword [esp + 0x7c], ebx
je 0x41a3a3
cmp ecx, ebp
je 0x41a39b
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 4
cmp eax, 5
jbe 0x41a39d
add ebx, 1
jmp 0x41a39f
xor eax, eax
add ebx, eax
mov dword [esp + 0x7c], ebx
cmp ebx, 0xffff
je 0x41a47e
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
cmp esi, eax
jbe 0x41a3c4
call fcn.0045cf74
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x5c]
mov ebx, ecx
lea ebx, [ebx]
cmp dword [esp + 0x60], eax
mov ebp, eax
jbe 0x41a3dd
call fcn.0045cf74
test ebx, ebx
je 0x41a3e9
lea ecx, [esp + 0x5c]
cmp ebx, ecx
je 0x41a3ee
call fcn.0045cf74
cmp esi, ebp
je 0x41a478
test ebx, ebx
jne 0x41a3ff
call fcn.0045cf74
cmp esi, dword [ebx + 8]
jb 0x41a409
call fcn.0045cf74
cmp byte [edi + 0x90], 0
jne 0x41a428
cmp byte [edi + 0x88], 0
jne 0x41a428
mov ecx, dword [edi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push esi
call eax
jmp 0x41a452
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
je 0x41a470
add dword [esp + 0x7c], eax
cmp esi, dword [ebx + 8]
jb 0x41a464
call fcn.0045cf74
mov eax, dword [esp + 0x64]
add esi, 0x10
jmp 0x41a3d0
mov dword [esp + 0x7c], 0xffff
mov ebx, dword [esp + 0x7c]
xor ebp, ebp
cmp dword [edi + 0xc0], ebp
jne 0x41a55a
cmp ebx, 0xffff
je 0x41a55a
mov esi, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
jbe 0x41a4a5
call fcn.0045cf74
lea eax, [esp + 0x34]
mov ebx, eax
jmp 0x41a4b0
mov ebp, dword [esp + 0x3c]
cmp dword [esp + 0x38], ebp
jbe 0x41a4bf
call fcn.0045cf74
test ebx, ebx
je 0x41a4cb
lea eax, [esp + 0x34]
cmp ebx, eax
je 0x41a4d0
call fcn.0045cf74
cmp esi, ebp
je 0x41a556
test ebx, ebx
jne 0x41a4e1
call fcn.0045cf74
cmp esi, dword [ebx + 8]
jb 0x41a4eb
call fcn.0045cf74
cmp byte [edi + 0x90], 0
jne 0x41a50a
cmp byte [edi + 0x88], 0
jne 0x41a50a
mov ecx, dword [edi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push esi
call eax
jmp 0x41a534
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
je 0x41a54e
add dword [esp + 0x7c], eax
cmp esi, dword [ebx + 8]
jb 0x41a546
call fcn.0045cf74
add esi, 0x10
jmp 0x41a4b0
mov dword [esp + 0x7c], 0xffff
mov ebx, dword [esp + 0x7c]
mov ecx, dword [edi + 0x70]
call fcn.004252b0
xor ebp, ebp
test eax, eax
jne 0x41a56e
mov dword [edi + 0x160], ebp
cmp ebx, 0xffff
je 0x41a5ea
cmp dword [edi + 0x160], ebp
je 0x41a585
add ebx, 1
mov dword [esp + 0x7c], ebx
cmp dword [edi + 0x168], ebp
je 0x41a594
add ebx, 1
mov dword [esp + 0x7c], ebx
cmp ebx, ebp
jne 0x41a5ea
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x41a5a9
push eax
call fcn.0045c39e
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
je 0x41a5c6
push eax
call fcn.0045c39e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
cmp eax, ebp
je 0x41a5e3
push eax
call fcn.0045c39e
add esp, 4
xor eax, eax
jmp 0x41a8c6
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov ecx, edi
call edx
mov esi, eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx ax, bh
mov ah, bl
push 4
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov ecx, edi
mov byte [esp + 0x80], 3
mov word [esp + 0x26], ax
call fcn.00412aa0
test eax, eax
jne 0x41a681
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x41a63e
push eax
call fcn.0045c39e
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
je 0x41a65b
push eax
call fcn.0045c39e
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
je 0x41a8c1
push eax
call fcn.0045c39e
add esp, 4
jmp 0x41a8c1
cmp dword [edi + 0x160], ebp
je 0x41a6ab
mov ecx, edi
call fcn.00412ff0
test eax, eax
jne 0x41a6ab
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x34]
call fcn.00415e20
xor eax, eax
jmp 0x41a8c6
cmp dword [edi + 0x168], ebp
je 0x41a6be
mov ecx, edi
call fcn.00413040
test eax, eax
je 0x41a694
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x41a7da
mov ecx, dword [esp + 0x4c]
mov edx, ecx
sub edx, eax
sar edx, 4
je 0x41a7da
mov edx, dword [esp + 0x54]
neg edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x58]
neg edx
cmp eax, ecx
mov dword [esp + 0x20], edx
mov esi, eax
jbe 0x41a702
call fcn.0045cf74
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
lea ebp, [esp + 0x44]
cmp eax, ecx
mov ebx, ecx
jbe 0x41a711
call fcn.0045cf74
test ebp, ebp
je 0x41a71d
lea eax, [esp + 0x44]
cmp ebp, eax
je 0x41a722
call fcn.0045cf74
cmp esi, ebx
je 0x41a7d6
test ebp, ebp
jne 0x41a733
call fcn.0045cf74
cmp esi, dword [ebp + 8]
jb 0x41a73d
call fcn.0045cf74
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add ecx, dword [esp + 0x1c]
add edx, dword [esp + 0x20]
cmp esi, dword [ebp + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jb 0x41a75c
call fcn.0045cf74
lea eax, [esp + 0x24]
push eax
push esi
mov ecx, edi
call fcn.00412c90
test eax, eax
je 0x41a784
cmp esi, dword [ebp + 8]
jb 0x41a777
call fcn.0045cf74
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esi, 0x10
jmp 0x41a706
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
je 0x41a7a2
push eax
call fcn.0045c39e
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
je 0x41a7bf
push eax
call fcn.0045c39e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
cmp eax, esi
jmp 0x41a5d8
mov ebx, dword [esp + 0x7c]
cmp dword [edi + 0xc0], 0
je 0x41a84c
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41a824
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 4
cmp eax, 5
jbe 0x41a824
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.00414a60
test eax, eax
jne 0x41a860
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x34]
call fcn.00415e20
xor eax, eax
jmp 0x41a8c6
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.004149b0
test eax, eax
jne 0x41a860
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x34]
call fcn.00415e20
xor eax, eax
jmp 0x41a8c6
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.00414920
test eax, eax
je 0x41a784
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
call fcn.00414920
test eax, eax
jne 0x41a87a
mov eax, dword [esp + 0x14]
push eax
jmp 0x41a789
cmp ebx, 0xffff
jne 0x41a8a2
mov ecx, dword [edi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edi + 0xf0]
mov edx, dword [edx + 0x28]
push eax
call edx
mov ecx, edi
call fcn.004130a0
test eax, eax
je 0x41a809
mov ecx, dword [edi + 0xf0]
call fcn.00449dc0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x34]
call fcn.00415e20
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4