Function at 0x41322a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x413242
xor eax, eax
jmp 0x41343e
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call fcn.00416a1d
mov edi, eax
mov ecx, edi
call fcn.004361fc
test al, al
jne 0x413268
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x41342b
push 6
pop edx
mov ecx, edi
call fcn.004355cc
cmp eax, 0xffffffff
jne 0x413286
push 5
pop edx
mov ecx, edi
call fcn.004355cc
cmp eax, 0xffffffff
je 0x41325d
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x4132b1
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
test eax, eax
je 0x4132ae
call edi
jmp 0x41342b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [esi + 0xc]
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov edx, 0xffff
add edi, edx
adc ecx, ebx
mov ebx, edi
shrd ebx, ecx, 0x10
shr ecx, 0x10
mov ecx, ebx
shl ecx, 2
sub eax, ecx
add eax, edx
sar eax, 0x10
cmp ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [esi + 4], ecx
jge 0x4132e4
mov eax, ebx
test eax, eax
jle 0x4132ed
mov dword [ebp - 0x14], eax
jmp 0x4132f1
and dword [ebp - 0x14], 0
lea edi, [ebx + 7]
shr edi, 3
mov eax, edi
call section..text
mov dword [ebp - 0x18], esp
push edi
xor edi, edi
push edi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esi + 8], edi
mov dword [ebp - 0x10], edi
cmp ebx, edi
je 0x41343b
mov dword [ebp - 8], edi
mov ecx, dword [esi]
xor edi, edi
push edi
push dword [ebp - 8]
lea edx, [ebp - 0xc]
push 4
call fcn.004356ec
cmp eax, 0x490
jne 0x413380
mov ecx, dword [esi]
and dword [ebp - 0xc], edi
push edi
push dword [ebp - 8]
lea edx, [ebp - 0xc]
push 4
call fcn.00435735
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4133f0
push 0xffffffffffffff9d
push 4
push edi
push dword [ebp - 8]
push 0xffffffffffffff9d
push 0x6f2
push eax
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
mov eax, dword [ebp - 0x24]
add esp, 0x20
mov dword [ebp - 4], eax
jmp 0x413424
test eax, eax
jne 0x413378
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4133f0
cmp edi, dword [ebp - 0x14]
ja 0x4133be
mov ecx, dword [ebp - 0x18]
lea eax, [edi - 1]
shr eax, 3
add eax, ecx
mov bl, byte [eax]
lea edx, [edi - 1]
and edx, 7
mov cl, dl
shr bl, cl
test bl, 1
jne 0x4133bb
mov bl, 1
mov ecx, edx
shl bl, cl
or bl, byte [eax]
mov byte [eax], bl
mov ebx, dword [ebp - 0x1c]
jmp 0x4133e4
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [esi]
and dword [ebp - 0xc], 0
xor eax, eax
push eax
push dword [ebp - 8]
lea edx, [ebp - 0xc]
push 4
call fcn.00435735
mov edi, eax
test edi, edi
jne 0x413402
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x20], 0xd
mov eax, dword [esi + 8]
cmp edi, eax
ja 0x4133ed
mov edi, eax
mov dword [esi + 8], edi
inc dword [ebp - 0x10]
add dword [ebp - 8], 4
cmp dword [ebp - 0x10], ebx
jne 0x413321
jmp 0x413424
push 0xffffffffffffff9d
push 4
xor eax, eax
push eax
push dword [ebp - 8]
push 0xffffffffffffff9d
push 0x6fc
push edi
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
add esp, 0x20
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41342e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41343b
mov ecx, esi
call fcn.00435668
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
leave
ret