Function at 0x437837
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 0x45061c
mov ecx, dword [esp]
mov dword [ecx + 4], 0xac44
mov eax, dword [esp]
mov dword [eax + 8], 0x200000
mov ecx, dword [esp]
mov byte [ecx + 0xc], 1
mov eax, dword [esp]
mov byte [eax + 0xd], 0
mov ecx, dword [esp]
mov word [ecx + 0xe], 0
mov eax, dword [esp]
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x437890
mov eax, dword [esp]
or byte [eax + 0xd], 1
mov ecx, dword [esp]
mov dword [ecx + 4], 0xac44
mov eax, dword [esp]
mov cl, byte [eax + 0xc]
test cl, cl
jne 0x4378a8
mov eax, dword [esp]
or byte [eax + 0xd], 1
mov ecx, dword [esp]
mov byte [ecx + 0xc], 1
mov eax, dword [esp]
mov esi, edx
mov dword [eax], 0x459f64
mov ebx, dword [esp]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
push esi
add ebx, 0x19
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
mov dword [ebx], edi
cmp edi, 0xffffffff
je 0x4378ed
push 0
push dword [ebx]
call sub.KERNEL32.dll_GetFileSize
mov esi, eax
sub esi, 0x80
jmp 0x4378ef
xor esi, esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov eax, dword [esp]
add eax, 0x25
mov word [eax], 0
mov eax, dword [esp]
add eax, 0x829
call fcn.00437052
mov eax, 0x46df08
call fcn.00436ede
test al, al
jne 0x437927
mov edx, dword [esp]
or byte [edx + 0xd], 1
jmp 0x437b5f
mov eax, dword [esp]
call fcn.00437ed3
test al, al
jne 0x43793f
mov edx, dword [esp]
or byte [edx + 0xd], 1
jmp 0x437b5f
mov ecx, dword [esp]
mov eax, dword [ecx + 0x4841]
mov ecx, dword [esp]
cmp eax, 3
setne dl
and edx, 1
mov byte [ecx + 0x18], dl
mov eax, dword [esp]
add eax, 0x482d
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [edx*4 + 0x457a64]
sar eax, cl
mov ecx, dword [esp]
mov edx, eax
test edx, edx
mov dword [ecx + 4], edx
jg 0x43798a
mov eax, dword [esp]
mov dword [eax + 4], 0xac44
mov edx, dword [esp]
or byte [edx + 0xd], 1
mov al, 2
mov edx, dword [esp]
mov cl, byte [edx + 0x18]
test cl, cl
jne 0x437997
dec eax
mov ecx, dword [esp]
mov edx, eax
mov byte [ecx + 0xc], dl
test dl, dl
jne 0x4379b1
mov eax, dword [esp]
mov byte [eax + 0xc], 1
mov eax, dword [esp]
or byte [eax + 0xd], 1
mov edx, 0x90
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x482d]
test ecx, ecx
je 0x4379c6
add edx, 0xffffffb8
mov ecx, dword [esp]
imul edx, dword [ecx + 0x4835]
mov dword [esp + 0x14], edx
mov eax, dword [esp]
add eax, 0x482d
fild dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
mov edx, dword [eax*4 + 0x457a64]
sar edx, cl
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov eax, dword [esp]
fdivp st(1)
fstp qword [eax + 0x4865]
mov edx, dword [esp]
mov eax, 0x480
mov ecx, dword [edx + 0x482d]
test ecx, ecx
je 0x437a18
add eax, 0xfffffdc0
mov edx, dword [esp]
mov dword [edx + 0x6c6d], eax
mov ecx, dword [esp]
mov dword [ecx + 0x6c71], eax
mov eax, dword [esp]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [esp]
fild dword [eax + 0x1d]
mov ecx, dword [esp]
fdiv qword [ecx + 0x4865]
fadd qword [0x437b6b]
call fcn.0044aad4
mov edx, dword [esp]
mov ecx, dword [esp]
imul dword [edx + 0x6c6d]
mov dword [ecx + 0x14], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [esp]
lea esi, [edx + 0x6c75]
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov eax, ecx
xor edi, edi
mov dword [eax], edi
inc edx
add eax, 4
cmp edx, 0x12
jl 0x437a72
inc ebx
add ecx, 0x48
cmp ebx, 0x20
jl 0x437a6e
inc dword [esp + 4]
add esi, 0x900
mov eax, dword [esp + 4]
cmp eax, 2
jl 0x437a6a
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0x10], 0x458274
mov eax, dword [esp]
mov edi, dword [esp + 0x10]
mov ebx, ecx
imul edx, dword [eax + 0x482d], 0x15
mov eax, dword [esp + 0x10]
lea edx, [eax + edx*4]
mov eax, dword [esp]
mov esi, dword [eax + 0x4839]
mov eax, esi
shl esi, 3
sub esi, eax
movzx eax, word [edx + esi*4 + 2]
mov edx, dword [esp]
imul edx, dword [edx + 0x482d], 0x15
lea edx, [edi + edx*4]
movzx edx, word [edx + esi*4]
sub eax, edx
mov esi, 3
cdq
idiv esi
mov esi, eax
xor eax, eax
mov dword [esp + 0xc], eax
movzx eax, cx
mov edi, dword [esp]
xor edx, edx
lea eax, [edi + eax*2 + 0x7e75]
jmp 0x437b34
lea edi, [edx + edx*2]
add di, bx
mov word [eax], cx
mov word [eax + 0x480], di
cmp dword [esp + 8], 3
jge 0x437b26
mov ebp, ecx
jmp 0x437b28
mov ebp, edi
mov word [eax + 0x900], bp
inc ecx
add eax, 2
inc edx
movzx edi, si
cmp edx, edi
jl 0x437b0b
inc ebx
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 3
jl 0x437afa
inc dword [esp + 8]
add dword [esp + 0x10], 2
mov edx, dword [esp + 8]
cmp edx, 0xd
jl 0x437aab
mov eax, dword [esp]
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret