Function at 0x416be0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3e87
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x508068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x88], edi
push dword [edi + 0x118]
mov dword [ebp - 0x80], 0
call fcn.004b5cd0
add esp, 4
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x417dc2
mov ecx, dword [esi + 0x134]
mov esi, dword [ecx]
mov dword [ebp - 0xb0], esi
cmp esi, ecx
je 0x417db7
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x94], eax
mov ecx, dword [esi + 0x10]
mov edx, 1
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
and ecx, 0x1f
shl edx, cl
mov ecx, dword [edi + 0x3b4]
shr eax, 5
test dword [ecx + eax*4], edx
jne 0x417cb4
push dword [ebp - 0x78]
mov eax, dword [edi + 0x3d4]
lea edx, [edi + 0x3c4]
add eax, dword [edx + 0xc]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
test edx, edx
je 0x416cd5
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
test edx, edx
je 0x416cf5
mov eax, dword [edx]
mov dword [ecx], eax
lea ecx, [ebp - 0x5c]
call fcn.00451520
mov eax, dword [edi + 0x3d4]
add esp, 0x1c
add eax, dword [edi + 0x3d0]
mov edx, dword [ebp - 0x78]
cmp dword [ebp - 0x54], eax
jne 0x416e81
lea ecx, [ebp - 0x1b]
call fcn.00453fb0
lea ecx, [ebp - 0x1b]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp eax, ecx
je 0x416d51
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0xf4]
call fcn.00407e90
or dword [ebp - 0x80], 3
push 0x2e
push str.it_torrent__bitField_requested__end__
push ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 0
call fcn.00453b70
or dword [ebp - 0x80], 4
lea edx, [ebp - 0xdc]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xdc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xcc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0xc8]
cmp eax, 0x10
mov ecx, dword [ebp - 0xdc]
cmovae edx, ecx
cmp byte [0x5102e0], 0
je 0x416dec
push 0
push edx
push 0x4ee918
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xdc]
cmp eax, 0x10
jb 0x416e1c
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x416e12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417dfd
push edx
push ecx
call fcn.004ad677
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
cmp edx, 0x10
jb 0x417cf1
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416e72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417dfd
push edx
push ecx
call fcn.004ad677
add esp, 8
jmp 0x417cf1
mov eax, dword [edi + 0x120]
dec eax
cmp edx, eax
jne 0x416ec8
push dword [edi + 0x11c]
mov esi, dword [edi + 0x118]
push esi
push 0
push edx
call fcn.004adb20
mov ecx, dword [edi + 0x110]
sub ecx, eax
mov eax, dword [edi + 0x114]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x78]
sbb eax, edx
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x11c]
jmp 0x416ee6
mov eax, dword [edi + 0x118]
mov esi, eax
mov ecx, dword [edi + 0x11c]
mov dword [ebp - 0x84], eax
mov eax, ecx
mov dword [ebp - 0x90], ecx
mov ecx, edx
push 0
push ecx
push eax
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0xa0], xmm0
call fcn.004adb20
xorps xmm0, xmm0
mov dword [ebp - 0xb8], eax
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.0044fec0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x90], 0
mov dword [ebp - 4], 1
jb 0x4174a3
ja 0x416f49
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x4174a9
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
mov esi, dword [edi + 0x3d8]
xorps xmm0, xmm0
mov eax, dword [edi + 0x3dc]
movlpd qword [ebp - 0xa0], xmm0
cmp esi, eax
je 0x416fb6
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
nop dword [eax + eax]
add ecx, dword [esi + 0x30]
adc edx, dword [esi + 0x34]
cmp dword [ebp - 0xb4], edx
jb 0x417028
ja 0x416fac
cmp dword [ebp - 0xb8], ecx
jb 0x417028
add esi, 0x148
cmp esi, eax
jne 0x416f90
mov ecx, dword [ebp - 0x94]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
sub eax, ecx
sbb edx, dword [ebp - 0xc4]
cmp dword [ebp - 0x90], edx
jb 0x41705b
mov ecx, dword [ebp - 0x84]
ja 0x416fe2
cmp ecx, eax
jbe 0x41705b
sub ecx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0xa4]
sbb dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0xa8], ecx
cmp edx, dword [ebp - 0x8c]
jb 0x41701a
ja 0x41707f
cmp eax, ecx
ja 0x41707f
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x8c], edx
jmp 0x41707f
mov eax, dword [esi + 0x30]
sub eax, ecx
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0x94]
sbb eax, edx
add ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x94], ecx
adc eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc4], eax
jmp 0x416fbc
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0x90]
sbb ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0xc4]
mov dword [0x50e4a4], eax
mov eax, dword [ebp - 0x94]
mov dword [0x50e4a0], eax
mov eax, dword [0x51028c]
mov dword [0x50e4a8], eax
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
jne 0x4173bb
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 2
lea eax, [edi + 0xf8]
cmp byte [edi + 0x12], 0
lea ecx, [ebp - 0x160]
push eax
je 0x41726b
mov edx, 0x4ee938
call fcn.00450750
add esp, 4
mov byte [ebp - 4], 3
lea edx, [edi + 0xe0]
cmp dword [edi + 0xf4], 8
jb 0x417100
mov edx, dword [edi + 0xe0]
push dword [edi + 0xf0]
mov ecx, eax
push edx
call fcn.00409ec0
mov dword [ebp - 0xcc], 0
xor ecx, ecx
mov dword [ebp - 0xc8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xdc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xcc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x80]
or eax, 8
mov dword [ebp - 0x80], eax
push 1
push 0x4ee934
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00409ec0
mov dword [ebp - 0xe4], 0
xor ecx, ecx
mov dword [ebp - 0xe0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, esi
mov byte [ebp - 4], 5
mov eax, ecx
mov dword [ebp - 0xac], eax
add eax, 0x14
mov dword [ebp - 0x9c], eax
cmp dword [eax], 8
jb 0x4171c7
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00409ec0
or dword [ebp - 0x80], 0x30
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x74]
movq qword [ebp - 0x100], xmm0
movq qword [ebp - 0x120], xmm0
call fcn.00407cb0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 7
movups xmmword [ebp - 0x74], xmm0
mov word [ebp - 0x130], ax
movq xmm0, qword [ebp - 0x100]
movq qword [ebp - 0x64], xmm0
call fcn.00407cb0
lea ecx, [ebp - 0xf4]
call fcn.00407cb0
lea ecx, [ebp - 0xdc]
jmp 0x41731b
mov edx, 0x4ee944
call fcn.00450750
add esp, 4
mov edx, eax
lea eax, [esi + 0x14]
mov byte [ebp - 4], 6
cmp dword [eax], 8
mov ecx, esi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x9c], eax
jb 0x417296
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, edx
call fcn.00409ec0
or dword [ebp - 0x80], 0x40
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x74]
movq qword [ebp - 0x100], xmm0
movq qword [ebp - 0x138], xmm0
call fcn.00407cb0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
lea ecx, [ebp - 0x148]
movups xmmword [ebp - 0x74], xmm0
mov word [ebp - 0x148], ax
movq xmm0, qword [ebp - 0x100]
movq qword [ebp - 0x64], xmm0
call fcn.00407cb0
lea ecx, [ebp - 0x160]
call fcn.00407cb0
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
jb 0x417343
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0xac], eax
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x417394
mov eax, dword [ebp - 0x9c]
cmp dword [eax], 8
jb 0x417373
mov eax, dword [esi]
jmp 0x417379
mov eax, dword [ebp - 0xac]
cmp byte [0x5102e0], 0
je 0x4173ac
push 0
push eax
push 0x4ee950
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4173ac
mov al, byte [0x50e469]
movzx ecx, al
test al, al
mov eax, 1
cmove ecx, eax
mov byte [0x50e469], cl
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00407cb0
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0xbc]
push 0x50e498
push 0
push dword [ebp - 0xa8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xbb8
push dword [0x50e4a8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41740e
cmp byte [0x5102e0], 0
je 0x41740e
push 0
push 0x4ee9c0
push 0x4ee9d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0xa8]
add dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x8c]
adc dword [ebp - 0xa4], ecx
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10c], ecx
lea ecx, [ebp - 0x50]
push eax
mov dword [ebp - 0x118], esi
call fcn.00459870
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x50]
call fcn.004598a0
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x90]
ja 0x4174a3
jb 0x41747a
mov edx, dword [ebp - 0x84]
cmp dword [ebp - 0x98], edx
jae 0x4174a9
mov eax, dword [ebp - 0xb8]
add eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb4]
adc eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb4], eax
jmp 0x416f61
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0x44]
push eax
call fcn.00469ca0
mov eax, dword [edi + 0x3a8]
lea edx, [ebp - 0x44]
mov ecx, dword [ebp - 0x78]
add esp, 4
mov esi, 0xf
mov ecx, dword [eax + ecx*4]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x417b2d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4174d0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x417b2d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x417b2d
mov ecx, dword [edi + 0x3b4]
mov eax, dword [ebp - 0x78]
shr eax, 5
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 0x78]
mov eax, dword [edx]
and ecx, 0x1f
bts eax, ecx
mov dword [edx], eax
mov eax, dword [ebp - 0xc0]
inc dword [edi + 0x124]
cmp dword [eax + 0x110], 0
je 0x417538
mov dword [eax + 0x114], 0
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4175eb
mov edi, 1
nop word [eax + eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
add dword [ecx + 0x28], edx
mov edx, dword [eax + 0x1c]
adc dword [ecx + 0x2c], edx
cmp byte [ecx + 0x39], 0
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x2c]
jne 0x41756f
mov byte [ecx + 0x39], 1
cmp edx, dword [ecx + 0x30]
jne 0x417597
cmp esi, dword [ecx + 0x34]
jne 0x417597
cmp byte [ecx + 0x38], 0
jne 0x417583
mov byte [ecx + 0x38], 1
mov dl, byte [0x50e469]
test dl, dl
movzx ecx, dl
cmove ecx, edi
mov byte [0x50e469], cl
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x4175c4
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4175c0
nop dword [eax]
cmp eax, dword [ecx + 8]
jne 0x4175c0
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x4175b0
mov eax, ecx
jmp 0x4175dc
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x4175dc
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x4175d0
cmp eax, dword [ebp - 0x50]
jne 0x417550
mov edi, dword [ebp - 0x88]
cmp byte [0x50e469], 0
je 0x41762c
mov esi, dword [edi + 0x3d8]
cmp esi, dword [edi + 0x3dc]
je 0x41762c
cmp byte [esi + 0x38], 0
je 0x41761e
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x41761e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0xffffffff
add esi, 0x148
cmp esi, dword [edi + 0x3dc]
jne 0x417602
mov esi, dword [ebp - 0xc0]
mov eax, dword [esi + 0xf8]
cmp byte [eax + 0xd9], 0
jne 0x4176e3
cmp dword [eax + 0x2f4], 0
je 0x4176e3
mov edx, dword [eax + 0x2f0]
add eax, 0x2f0
mov dword [ebp - 0x9c], eax
mov eax, edx
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x41768e
mov esi, dword [ebp - 0x78]
cmp dword [ecx + 0x10], esi
jae 0x41767b
mov ecx, dword [ecx + 8]
jmp 0x41767f
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x417671
cmp eax, edx
je 0x41768e
cmp esi, dword [eax + 0x10]
jae 0x417690
mov eax, edx
cmp eax, edx
je 0x4176e3
mov esi, dword [eax + 8]
mov ecx, eax
cmp byte [esi + 0xd], 0
je 0x4176ba
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
jne 0x4176cc
cmp ecx, dword [edx + 8]
jne 0x4176cc
mov ecx, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x4176a8
jmp 0x4176cc
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x4176cc
mov edx, dword [esi]
mov esi, edx
cmp byte [edx + 0xd], 0
je 0x4176c2
mov ecx, dword [ebp - 0x9c]
push eax
call fcn.00408540
push 0x14
push eax
call fcn.004ad677
add esp, 8
cmp byte [edi + 0x13], 0
je 0x4176f8
push dword [ebx + 8]
call fcn.00416ab0
add esp, 4
mov byte [edi + 0x10], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax + 8], 6
jne 0x417715
mov ecx, dword [ebp - 0x78]
push eax
push dword [ebx + 8]
call fcn.00426180
mov ecx, dword [ebp - 0x78]
add esp, 8
jmp 0x417735
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
push ecx
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [eax + 0xe8]
call fcn.004548c0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x78], ecx
mov eax, dword [edi + 0x490]
mov esi, dword [eax]
cmp esi, eax
je 0x41779c
jmp 0x417746
mov ecx, dword [ebp - 0x78]
cmp esi, dword [ebx + 0xc]
je 0x417790
mov eax, dword [esi + 0xf8]
cmp dword [eax + 0x2e4], 0
je 0x417790
mov edi, dword [esi + 0xf8]
and ecx, 0x1f
mov eax, dword [ebp - 0x78]
mov edx, 1
shl edx, cl
shr eax, 5
mov ecx, dword [edi + 0x2d8]
mov edi, dword [ebp - 0x88]
test dword [ecx + eax*4], edx
jne 0x417790
mov ecx, dword [ebp - 0x78]
push esi
push dword [ebx + 8]
call fcn.00426180
add esp, 8
mov esi, dword [esi]
mov eax, dword [edi + 0x490]
cmp esi, eax
jne 0x417743
cmp byte [edi + 0x13], 0
je 0x4178d8
mov esi, dword [eax]
cmp esi, eax
je 0x417817
nop dword [eax]
cmp esi, dword [ebx + 0xc]
je 0x41780d
mov eax, dword [esi + 0x12c]
mov edx, eax
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x4177f8
mov edi, dword [ebp - 0x78]
nop dword [eax]
cmp dword [ecx + 0x10], edi
jae 0x4177da
mov ecx, dword [ecx + 8]
jmp 0x4177de
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x4177d0
mov edi, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x78]
cmp edx, eax
je 0x4177fb
cmp ecx, dword [edx + 0x10]
jb 0x4177fb
jmp 0x4177fd
mov ecx, dword [ebp - 0x78]
mov edx, eax
cmp edx, eax
je 0x41780d
push esi
push dword [ebx + 8]
call fcn.00425ca0
add esp, 8
mov esi, dword [esi]
cmp esi, dword [edi + 0x490]
jne 0x4177b0
mov eax, dword [0x5105a8]
mov esi, dword [eax]
cmp esi, eax
je 0x4178d8
mov ecx, dword [ebx + 8]
mov edi, dword [ebp - 0x78]
nop dword [eax]
cmp dword [esi + 0x14], ecx
jne 0x417889
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0xc]
je 0x417889
mov eax, dword [eax + 0x12c]
mov edx, eax
mov dword [ebp - 0x7c], edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
jne 0x417872
cmp dword [edx + 0x10], edi
jae 0x41785b
mov edx, dword [edx + 8]
jmp 0x417860
mov dword [ebp - 0x7c], edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x417851
mov edx, dword [ebp - 0x7c]
cmp edx, eax
je 0x417872
cmp edi, dword [edx + 0x10]
jae 0x417874
mov edx, eax
cmp edx, eax
je 0x417889
push dword [esi + 0x18]
push ecx
mov ecx, edi
call fcn.00425ca0
mov ecx, dword [ebx + 8]
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4178b4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4178b0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x4178b0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4178a0
mov esi, eax
jmp 0x4178cc
mov esi, eax
mov edx, dword [esi]
cmp byte [edx + 0xd], 0
jne 0x4178cc
nop
mov eax, dword [edx]
mov esi, edx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x4178c0
cmp esi, dword [0x5105a8]
jne 0x417830
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
test eax, eax
je 0x4178e9
mov eax, dword [eax]
test eax, eax
je 0x4178e9
mov ecx, dword [eax]
mov eax, dword [ebp - 0x54]
sub esp, 0xc
mov dword [ebp - 0x7c], eax
mov edx, esp
xor eax, eax
test ecx, ecx
je 0x417902
mov esi, dword [ecx]
test esi, esi
je 0x417902
mov eax, dword [esi]
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x88]
mov dword [edx], 0
mov dword [edx + 4], 0
test eax, eax
je 0x417926
mov eax, dword [eax]
test eax, eax
je 0x417926
mov eax, dword [eax]
mov dword [edx], eax
lea eax, [esi + 1]
sub esp, 0xc
mov dword [edx + 8], eax
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
test ecx, ecx
je 0x41794c
mov eax, dword [ecx]
test eax, eax
je 0x41794c
mov eax, dword [eax]
mov dword [edx], eax
lea eax, [ebp - 0x17c]
mov dword [edx + 8], esi
push eax
lea ecx, [edi + 0x3c4]
call fcn.0044c250
mov eax, dword [edi + 0x124]
cmp eax, dword [edi + 0x120]
jne 0x417c90
mov dword [edi + 0x4e0], 0
mov dword [edi + 0x4e4], 0
push 0
mov word [edi + 0x10], 0x101
call fcn.004b59da
mov dword [edi + 0x48], eax
add esp, 4
mov dword [edi + 0x4c], edx
mov eax, dword [ebx + 0xc]
cmp dword [eax + 8], 0x11
jne 0x4179b5
mov ecx, dword [ebp - 0x78]
push eax
push dword [ebx + 8]
call fcn.00426180
add esp, 8
push dword [ebx + 8]
call fcn.00428d30
mov eax, dword [edi + 0x430]
add esp, 4
neg eax
sbb eax, eax
push 0x3e8
push dword [0x50e600]
dec eax
mov dword [edi + 0x4c8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417a34
push dword [ebx + 8]
mov esi, 1
mov ecx, esi
call fcn.00480710
add esp, 4
push dword [0x50e600]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x417a22
cmp byte [0x5102e0], al
je 0x417a22
push eax
push 0x4eea00
push 0x4eea18
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 1
push dword [0x510290]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x417a56
cmp byte [0x5102e0], 0
je 0x417a51
push 0
push 0x4eea30
push 0x4eea44
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, 1
mov eax, dword [ebx + 8]
push 0x50f18e
push 0x14
push 0x50ff04
mov dword [0x510890], eax
mov dword [0x50fbec], 0x10
mov dword [0x50ff84], 1
call fcn.004b68ce
mov ecx, dword [edi + 0xf0]
add esp, 0xc
inc ecx
mov eax, 0x100
cmp ecx, 0x100
cmova ecx, eax
cmp dword [edi + 0xf4], 8
lea eax, [edi + 0xe0]
jb 0x417aac
mov eax, dword [eax]
push eax
push ecx
push 0x50fd00
call fcn.004b68ce
add esp, 0xc
push 0x50fbe0
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, esi
call fcn.0047fea0
call fcn.00410e70
mov dword [edi + 0x154], 0
mov ecx, 0x3c
mov dword [0x50e578], eax
add edi, 0x158
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x88]
mov ecx, 0x3c
mov dword [eax + 0x248], 0
lea edi, [eax + 0x24c]
or eax, 0xffffffff
rep stosd dword es:[edi], eax
call fcn.00475770
call fcn.00479340
call fcn.0043c6d0
mov edi, dword [ebp - 0x88]
jmp 0x417c90
cmp byte [edi + 0x13], 0
jne 0x417bc1
mov eax, dword [ebp - 0x84]
add dword [edi + 0x4e0], eax
mov eax, dword [ebp - 0x90]
adc dword [edi + 0x4e4], eax
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
cmp eax, ecx
je 0x417bc1
nop dword [eax + eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
sub dword [ecx + 0x20], edx
mov edx, dword [eax + 0x1c]
sbb dword [ecx + 0x24], edx
cmp byte [ecx + 0x39], 0
jne 0x417b79
mov byte [ecx + 0x39], 1
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x417ba4
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x417ba0
nop dword [eax + eax]
cmp eax, dword [ecx + 8]
jne 0x417ba0
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x417b90
mov eax, ecx
jmp 0x417bbc
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x417bbc
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x417bb0
cmp eax, dword [ebp - 0x50]
jne 0x417b60
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x417bca
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x54]
xor esi, esi
mov eax, dword [eax + ecx*4]
mov byte [eax + 4], 0
nop dword [eax]
mov edx, dword [ebp - 0x5c]
test edx, edx
jne 0x417beb
xor eax, eax
jmp 0x417bed
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x54]
mov eax, dword [eax + ecx*4]
cmp esi, dword [eax + 0x1c]
jae 0x417c30
test edx, edx
jne 0x417c07
xor eax, eax
jmp 0x417c09
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x54]
mov eax, dword [eax + ecx*4]
mov ecx, esi
shr ecx, 5
mov eax, dword [eax + 0x10]
lea edx, [eax + ecx*4]
mov ecx, esi
mov eax, dword [edx]
and ecx, 0x1f
btr eax, ecx
inc esi
mov dword [edx], eax
jmp 0x417be0
test edx, edx
jne 0x417c38
xor eax, eax
jmp 0x417c3a
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x54]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc0]
mov dword [eax + 0x20], 0
inc dword [edi + 0x138]
mov eax, dword [ecx + 0xf8]
inc byte [eax + 0x6a]
cmp dword [ecx + 0x114], 0
jne 0x417c72
inc dword [ecx + 0x110]
mov eax, dword [ecx + 0x110]
cmp eax, 2
jle 0x417c90
mov eax, dword [ecx + 0xf8]
mov byte [eax + 0x69], 1
mov eax, 4
mov word [ecx + 0x10], ax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.0044fae0
push 0x20
push dword [ebp - 0x50]
call fcn.004ad677
mov esi, dword [ebp - 0xb0]
add esp, 8
jmp 0x417cf1
mov eax, dword [ebx + 8]
cmp byte [eax + 0x13], 0
je 0x417cd4
cmp byte [0x5102e0], 0
je 0x417cf1
push 0
push 0x4eea6c
push str.end_game_
jmp 0x417ce9
cmp byte [0x5102e0], 0
je 0x417cf1
push 0
push 0x4eeaa0
push str._end_game_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebx + 0xc]
add eax, 0x12c
mov dword [ebp - 0x7c], eax
mov edx, dword [eax]
mov eax, edx
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x417d36
mov edi, dword [ebp - 0x78]
nop dword [eax]
cmp dword [ecx + 0x10], edi
jae 0x417d1a
mov ecx, dword [ecx + 8]
jmp 0x417d1e
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x417d10
mov edi, dword [ebp - 0x88]
cmp eax, edx
je 0x417d36
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [eax + 0x10]
jae 0x417d38
mov eax, edx
cmp eax, edx
je 0x417d4c
mov ecx, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0044fd40
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x417d7a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x417d70
nop
cmp esi, dword [eax + 8]
jne 0x417d70
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x417d60
mov esi, eax
mov dword [ebp - 0xb0], esi
jmp 0x417da2
mov esi, eax
mov dword [ebp - 0xb0], esi
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x417da2
nop word [eax + eax]
mov eax, dword [ecx]
mov esi, ecx
mov dword [ebp - 0xb0], esi
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x417d90
mov eax, dword [ebx + 0xc]
cmp esi, dword [eax + 0x134]
jne 0x416c7e
mov eax, dword [ebp - 0xbc]
push eax
call fcn.004b5a1c
add esp, 4
jmp 0x417ddf
cmp byte [0x5102e0], 0
je 0x417ddf
push 0
push str.verification_piece__
push 0x4eeaec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ad19c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004b5c80
int3