Function at 0x411e90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483686
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
mov eax, dword [0x4e6b6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x150]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x2c]
call fcn.00401b3b
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
add eax, 1
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb4]
mov dl, byte [ecx]
mov byte [ebp - 0xb9], dl
add dword [ebp - 0xb4], 1
cmp byte [ebp - 0xb9], 0
jne 0x411f0f
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
je 0x412290
mov byte [ebp - 0x35], 1
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x36]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.0040122b
movzx ecx, al
test ecx, ecx
je 0x412178
push 0x4ed594
lea ecx, [ebp - 0x2c]
call fcn.00401005
push str._patch_
lea ecx, [ebp - 0x64]
call fcn.00401e1a
mov byte [ebp - 4], 1
push 1
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040159b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401af5
push 1
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
imul ecx, ecx, 0x44
mov edx, dword [ebp - 0xb0]
add ecx, dword [edx + 0x28]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040159b
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.00401e1a
mov byte [ebp - 4], 2
push 1
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040159b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00401af5
mov byte [ebp - 0x37], 1
movzx edx, byte [ebp - 0x36]
test edx, edx
jne 0x4120d4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.00401f37
lea ecx, [ebp - 0x50]
call fcn.00401b3b
mov byte [ebp - 4], 3
push 0x4ed594
lea ecx, [ebp - 0x50]
call fcn.00401005
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00401e1a
mov byte [ebp - 4], 4
push 1
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x50]
call fcn.0040159b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00401af5
push 0x2f
lea ecx, [ebp - 0x8e]
call fcn.00401235
mov byte [ebp - 4], 5
push 0x4ed188
lea eax, [ebp - 0x8e]
push eax
lea ecx, [ebp - 0x50]
call fcn.004020a9
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8e]
call fcn.00401393
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov dword [ebp - 0xa8], eax
push 0
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401320
push eax
call dword [0x4e9458]
push 0x80
lea ecx, [ebp - 0x2c]
call fcn.00401320
push eax
call dword [0x4eaec0]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401a0f
jmp 0x4120e1
mov edx, dword [ebp - 0xb0]
mov byte [edx + 0x1a1], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov dword [ebp - 0xac], eax
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp - 0xac]
push eax
call dword [0x4e9764]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x41211d
mov byte [ebp - 0x37], 0
jmp 0x412155
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x41214b
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x148]
sub edx, eax
mov eax, dword [ebp - 0xb0]
mov dword [eax + 0x148], edx
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx edx, byte [ebp - 0x37]
test edx, edx
je 0x412178
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.00401a82
mov byte [ebp - 0x35], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x41228b
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
add edx, 1
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc4]
mov cl, byte [eax]
mov byte [ebp - 0xc9], cl
add dword [ebp - 0xc4], 1
cmp byte [ebp - 0xc9], 0
jne 0x41219c
mov edx, dword [ebp - 0xc4]
sub edx, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], edx
je 0x41228b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
add ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd4]
mov al, byte [edx]
mov byte [ebp - 0xd9], al
add dword [ebp - 0xd4], 1
cmp byte [ebp - 0xd9], 0
jne 0x4121ea
mov ecx, dword [ebp - 0xd4]
sub ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
add eax, 1
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe4]
mov dl, byte [ecx]
mov byte [ebp - 0xe9], dl
add dword [ebp - 0xe4], 1
cmp byte [ebp - 0xe9], 0
jne 0x412242
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xe8]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x30]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x411ef7
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x154]
cmp dword [edx + eax*4], 0
je 0x4122e5
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x154]
mov ecx, dword [eax + ecx*4]
add ecx, 2
push ecx
call fcn.00449d86
add esp, 4
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x412393
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x154]
cmp dword [eax + ecx*4], 0
je 0x41234b
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x154]
mov edx, dword [ecx + edx*4]
add edx, 2
push edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x150]
mov ecx, dword [eax + ecx*4]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0044ae00
add esp, 0xc
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x150]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.0044a50b
add esp, 4
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x150]
mov edx, dword [ebp - 0x34]
mov dword [eax + ecx*4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x15c]
cmp dword [eax + ecx*4], 0
je 0x412407
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x15c]
xor ebx, ebx
mov eax, dword [ecx + edx*4]
mov edx, 4
mul edx
seto bl
neg ebx
or ebx, eax
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449d86
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4124b5
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x15c]
cmp dword [ecx + edx*4], 0
je 0x41246d
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x15c]
mov eax, dword [edx + eax*4]
shl eax, 4
push eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x160]
mov edx, dword [ecx + edx*4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0044ae00
add esp, 0xc
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x160]
mov edx, dword [ecx + edx*4]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
call fcn.0044a50b
add esp, 4
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 0x160]
mov eax, dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
mov byte [ebp - 0xa1], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401a0f
mov al, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4