Function at 0x415930
Capabilities:
Get file size

Disassembly:
sub esp, 0xa0
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
xor ebx, ebx
cmp byte [0x481232], bl
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
jne 0x415971
push 0x481200
mov byte [0x481232], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [ebp + 0x7c], 1
jne 0x41597f
or eax, 0xffffffff
jmp 0x415bae
cmp byte [ebp + 0x7d], 1
jne 0x41598f
mov eax, 0xfffffff8
jmp 0x415bae
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x80], eax
jne 0x4159bb
mov eax, 0xfffffffe
jmp 0x415bae
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x18]
push 1
push ebx
push ebx
push edx
mov esi, eax
call fcn.00448ea0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [ebp + 0x8c], edx
lea edx, [esp + 0x14]
push edx
mov dword [ebp + 0x88], eax
push ebx
lea eax, [ecx + 0x20]
push ebx
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.004161a0
cmp dword [esp + 0x14], ebx
je 0x415a1f
mov eax, dword [ebp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
jmp 0x415bae
push eax
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x2c]
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004162e0
cmp byte [esp + 0x28], 0x67
jne 0x415b9c
cmp byte [esp + 0x29], 0x70
jne 0x415b9c
cmp byte [esp + 0x2a], 0x61
jne 0x415b9c
cmp byte [esp + 0x2b], 0x6b
jne 0x415b9c
cmp dword [esp + 0x2c], 1
je 0x415a7d
mov ecx, dword [ebp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffa
jmp 0x415bae
cmp dword [esp + 0x30], 0x20
je 0x415a9b
mov edx, dword [ebp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff9
jmp 0x415bae
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x90], eax
mov eax, esi
imul eax, eax, 0x5c
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
mov ecx, ebp
call fcn.004161a0
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
je 0x415ae1
mov eax, dword [ebp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff7
jmp 0x415bae
cmp esi, ebx
jbe 0x415b45
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
lea ecx, [ecx]
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
movsx eax, byte [esp + 0x48]
sub eax, 1
je 0x415b11
sub eax, 1
jne 0x415b2b
lea ebx, [ebp + 0x64]
jmp 0x415b22
lea edx, [ebp + 0x58]
lea ecx, [esp + 0x88]
call fcn.004171e0
mov ebx, eax
lea eax, [esp + 0x48]
call fcn.00417330
mov eax, dword [esp + 0x14]
add eax, 0x5c
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], eax
jne 0x415af0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
push eax
push ebp
call fcn.004162e0
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x88]
xor edx, edx
sub eax, dword [esp + 0x3c]
mov dword [ebp + 0xa0], ecx
mov ecx, dword [ebp + 0x8c]
sbb ecx, edx
mov dword [ebp + 0x98], eax
mov eax, dword [esp + 0x24]
push 0x3f
mov byte [ebp + 0x7c], 1
mov dword [ebp + 0xa4], esi
mov dword [ebp + 0x9c], ecx
call fcn.004171b0
push eax
add ebp, 8
push ebp
call fcn.00443ea0
add esp, 0xc
xor eax, eax
jmp 0x415bae
mov edx, dword [ebp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffb
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441b4d
add esp, 0xa0
ret 4