Function at 0x45d9c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x45d9c9
mov eax, dword [ebp - 4]
add esp, 0xffffffd8
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov byte [ebp - 7], 0
mov ecx, 0x8000000
mov edx, 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040eba4
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45da13
mov edx, dword [ebp - 4]
mov ax, 1
call fcn.0040de10
jmp 0x45de78
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
test esi, esi
jne 0x45da2c
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x45de78
push 4
push 0x1000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
test edi, edi
jne 0x45da69
mov dword [ebp - 0x202c], esi
fild dword [ebp - 0x202c]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.00412abc
mov edx, eax
mov ax, 0xb
call fcn.0040de10
jmp 0x45de78
push esi
push edi
push ebx
call sub.kernel32.dll__lread
mov edx, dword [0x48d498]
mov dword [edx], eax
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x48d498]
cmp esi, dword [eax]
jle 0x45daa5
mov edx, dword [ebp - 4]
mov ax, 2
call fcn.0040de10
push 0x4000
push esi
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x45de78
mov eax, dword [0x48dad8]
cmp byte [eax], 3
jb 0x45dab5
cmp dword [ebp + 8], 0
je 0x45dac3
mov ecx, esi
mov edx, edi
xor eax, eax
call fcn.0040a1c0
mov dword [ebp - 0x14], eax
mov eax, dword [0x48dad8]
cmp byte [eax], 3
jae 0x45db15
mov eax, dword [0x48d19c]
not eax
cmp eax, dword [ebp - 0x14]
je 0x45db2f
mov eax, dword [0x48d1a0]
not eax
cmp eax, dword [ebp - 0x14]
je 0x45db2f
mov eax, dword [0x48d1a4]
not eax
cmp eax, dword [ebp - 0x14]
je 0x45db2f
mov ax, 0x2ec
call fcn.0040bc04
mov edx, 4
call fcn.00411d74
push 0x4000
push esi
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x45de78
call fcn.00422f34
test al, al
jne 0x45db2f
push 0x4000
push esi
push edi
call sub.kernel32.dll_VirtualFree_1
jmp 0x45de78
mov eax, 0x17c
call fcn.004024e8
mov dword [ebp - 0x18], eax
mov edx, 0x17c
mov eax, dword [ebp - 0x18]
call fcn.00405a9c
mov ebx, dword [ebp - 0x18]
mov dword [ebx], edi
mov al, byte [ebp - 5]
mov byte [ebx + 0xe], al
cmp dword [ebp + 8], 0
setne al
mov byte [ebx + 0xf], al
test al, al
jne 0x45db6a
mov eax, dword [0x48d680]
mov byte [eax], 0
mov al, byte [ebp - 6]
xor al, 1
mov byte [ebx + 0xc], al
test al, al
jne 0x45dd45
mov dl, 1
cmp dword [ebp + 8], 0
je 0x45dba6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, 1
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + eax*4 + 0x150]
cmp ecx, dword [ebp - 0x14]
jne 0x45dba0
xor edx, edx
jmp 0x45dba6
inc eax
cmp eax, 0xb
jne 0x45db8d
test dl, dl
je 0x45dd45
cmp dword [ebp + 8], 0
je 0x45dbd8
mov edx, dword [ebp + 8]
mov eax, 1
cmp dword [edx + eax*4 + 0x150], 0
jne 0x45dbd2
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4 + 0x150], ecx
jmp 0x45dbd8
inc eax
cmp eax, 0xb
jne 0x45dbbc
mov byte [ebx + 0xc], 1
mov eax, dword [0x48d550]
cmp byte [eax + 0x192c], 1
je 0x45dc02
mov eax, dword [0x48d550]
cmp byte [eax + 0x192c], 2
jne 0x45dbfe
cmp byte [ebx + 0xe], 0
jne 0x45dc02
xor eax, eax
jmp 0x45dc04
mov al, 1
mov byte [ebx + 0xd], al
push 4
push 0x1000
push 0x2000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 4], eax
push 4
push 0x1000
push 0x2000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov dword [ebx + 8], edi
mov eax, dword [0x48d510]
cmp dword [eax], 0
jle 0x45dc68
mov eax, edi
call fcn.0040cd5c
mov ax, 0x11e
call fcn.0040bc04
push eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x48d230]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0045eac0
mov edi, eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
mov byte [ebx + 0xc], 0
test edi, edi
jge 0x45dcd5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
call fcn.0045d908
mov ax, 0x1f0
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48d830]
mov ecx, 3
call fcn.00411d84
jmp 0x45de2a
xor edi, edi
cmp byte [ebx + 0xd], 0
je 0x45dcf9
mov byte [ebx + 0xd], 0
lea ecx, [ebp - 0x2025]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0045d738
test al, al
je 0x45de2a
cmp dword [ebp + 8], 0
jne 0x45dd45
mov eax, dword [0x48d330]
movsx eax, word [eax]
test eax, eax
jle 0x45dd45
mov dword [ebp - 0x20], eax
mov eax, dword [0x48d524]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x45dd3c
push 0
push 0
push 0x416
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
test eax, eax
je 0x45de2a
add dword [ebp - 0x24], 4
dec dword [ebp - 0x20]
jne 0x45dd16
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
cmp byte [ebp - 6], 0
jne 0x45dd62
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0045eac0
mov edi, eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
test edi, edi
jge 0x45ddff
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
call fcn.0045d908
mov eax, dword [0x48d868]
cmp byte [eax], 0
jne 0x45dde8
cmp byte [ebx + 0xc], 0
je 0x45ddbc
mov ax, 0x2e5
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48da44]
call fcn.00405c48
jmp 0x45ddd1
mov ax, 0x2e6
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48da44]
call fcn.00405c48
mov edx, dword [0x48da44]
mov eax, dword [0x48d830]
mov ecx, 3
call fcn.00411d84
jmp 0x45de18
mov edx, dword [0x48d830]
mov eax, dword [0x48d698]
call fcn.00403250
call fcn.004032bc
jmp 0x45de18
cmp byte [ebx + 0xc], 0
je 0x45de18
mov ax, 0x233
call fcn.0040bc04
mov edx, 4
call fcn.00411d74
mov eax, dword [0x48d868]
cmp byte [eax], 0
je 0x45de2a
mov eax, dword [ebp - 0x10]
call fcn.0045df84
push 0x4000
push esi
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebx + 4]
test eax, eax
je 0x45de4f
push 0x4000
push 0x2000
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebx + 8]
test eax, eax
je 0x45de66
push 0x4000
push 0x2000
push eax
call sub.kernel32.dll_VirtualFree_1
dec edi
sete byte [ebp - 7]
mov edx, 0x17c
mov eax, dword [ebp - 0x18]
call fcn.00402508
mov al, byte [ebp - 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4