Function at 0x4121d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4892f6
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
mov eax, dword [0x4f1d14]
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.00401a87
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 0x41224f
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
je 0x4125d0
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.0040126c
movzx ecx, al
test ecx, ecx
je 0x4124b8
push 0x4f8b20
lea ecx, [ebp - 0x2c]
call fcn.00401005
push str._patch_
lea ecx, [ebp - 0x64]
call fcn.00401da7
mov byte [ebp - 4], 1
push 1
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040245a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401a3c
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.0040245a
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.00401da7
mov byte [ebp - 4], 2
push 1
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040245a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00401a3c
mov byte [ebp - 0x37], 1
movzx edx, byte [ebp - 0x36]
test edx, edx
jne 0x412414
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.00401edd
lea ecx, [ebp - 0x50]
call fcn.00401a87
mov byte [ebp - 4], 3
push 0x4f8b20
lea ecx, [ebp - 0x50]
call fcn.00401005
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00401da7
mov byte [ebp - 4], 4
push 1
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x50]
call fcn.0040245a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00401a3c
push 0x2f
lea ecx, [ebp - 0x8e]
call fcn.0040127b
mov byte [ebp - 4], 5
push 0x4f8348
lea eax, [ebp - 0x8e]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402077
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8e]
call fcn.004013de
lea ecx, [ebp - 0x2c]
call fcn.0040136b
mov dword [ebp - 0xa8], eax
push 0
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040136b
push eax
call dword [0x4f4614]
push 0x80
lea ecx, [ebp - 0x2c]
call fcn.0040136b
push eax
call dword [0x4f5f78]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040192e
jmp 0x412421
mov edx, dword [ebp - 0xb0]
mov byte [edx + 0x1a1], 1
lea ecx, [ebp - 0x2c]
call fcn.0040136b
mov dword [ebp - 0xac], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp - 0xac]
push eax
call dword [0x4f4920]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x41245d
mov byte [ebp - 0x37], 0
jmp 0x412495
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x41248b
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 0x4124b8
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.004019c4
mov byte [ebp - 0x35], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x4125cb
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 0x4124dc
mov edx, dword [ebp - 0xc4]
sub edx, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], edx
je 0x4125cb
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 0x41252a
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 0x412582
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 0x412237
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 0x412625
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.00450068
add esp, 4
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x4126d3
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 0x41268b
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.004510f0
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.004507ed
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 0x412747
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.00450068
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4127f5
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 0x4127ad
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.004510f0
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.004507ed
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.0040192e
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