Function at 0x421197
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7e15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0xa4
call fcn.0042bc00
test eax, eax
je 0x4211ce
xor eax, eax
jmp 0x4214b9
mov ecx, dword [ebp - 0x48]
call fcn.0058532b
mov eax, dword [ebp - 0x48]
mov byte [eax + 0x61], 0
push 0x60bb80
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x67c]
call fcn.0058517d
mov edx, dword [ebp - 0x48]
add edx, 0x260
push edx
lea ecx, [ebp - 0x2c]
call fcn.00585936
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x890]
call fcn.00425aa0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x70
call fcn.004039e0
test eax, eax
jne 0x421268
push 0x60bb94
mov ecx, dword [ebp - 0x48]
add ecx, 0x70
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00585e56
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00585fd9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00585bc1
jmp 0x4212ed
cmp dword [ebp - 0x20], 0xffffffff
je 0x4212ed
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x890]
call fcn.0057f10f
cmp eax, 1
jne 0x4212ed
push 0x60bb98
push 0
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x890]
call fcn.0057f06a
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00585e56
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00585fd9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00585bc1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00585bc1
mov ecx, dword [ebp - 0x48]
add ecx, 0xa4
call fcn.00403e30
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x74
call fcn.00585cfa
mov eax, dword [ebp - 0x48]
add eax, 0x74
push eax
lea ecx, [ebp - 0x14]
call fcn.00585936
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00401260
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x684
call fcn.00401260
push eax
lea ecx, [ebp - 0x14]
call fcn.0057db99
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x68
call fcn.00585cfa
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x74
call fcn.00585ff1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4213a2
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00585bc1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00585bc1
mov eax, dword [ebp - 0x3c]
jmp 0x4214b9
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edx
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.004039a0
add eax, 0xa
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00459e80
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov byte [edx], 4
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.00459fb0
add esp, 0xc
push 4
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 5
push eax
call fcn.00459fb0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004039a0
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00585ff1
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 9
push ecx
call fcn.00459fb0
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x670]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x674]
call fcn.0042aab2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0xa4
call fcn.004256f0
lea ecx, [ebp - 0x40]
call fcn.00585bc1
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00585bc1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00585bc1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret