Function at 0x4806a7
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x55c
mov eax, dword [ebp + 0x70]
xor edx, edx
inc edx
cmp word [eax], 0x2a
mov dword [ebp - 8], ecx
jne 0x4806cb
cmp word [eax + 2], 0
mov byte [ebp + 0x53], dl
je 0x4806cf
mov byte [ebp + 0x53], 0
push ebx
mov ebx, dword [ebp + 0x6c]
push esi
mov esi, dword [ebp + 0x74]
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
and dword [ebp + 0x48], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x28]
mov ecx, eax
and ecx, edx
push edi
mov edi, ebx
mov dword [ebp + 0x24], ecx
mov ecx, ebx
and eax, 0x10
and ecx, 2
and edi, 0x20
mov dword [ebp - 0x5c], eax
mov eax, ebx
and eax, edx
mov dword [ebp - 0x38], ecx
mov ecx, ebx
mov dword [ebp + 4], edi
mov edi, ebx
and bl, 0x40
and ecx, 0x10
and edi, 0x100
neg bl
sbb bl, bl
and bl, 0xfe
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], eax
xor eax, eax
inc bl
cmp ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], edi
je 0x48075c
mov dword [ebp - 0x30], edx
mov edi, dword [esi + 0x30]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edi
call fcn.004451da
cmp dword [ebp + 0x24], 0
jne 0x480d5d
mov eax, dword [ebp + 0x78]
test eax, eax
mov dword [ebp - 0x60], eax
jl 0x48078a
dec dword [ebp + 0x78]
cmp dword [ebp + 0x24], 0
je 0x48079e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x34]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
push 0x5c
push 0
push dword [ebp + 0x60]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 0x4c], eax
sub eax, dword [ebp + 0x60]
lea ecx, [ebp + 8]
inc eax
inc eax
sar eax, 1
mov dword [ebp - 0xc], eax
call fcn.004451da
and dword [ebp - 0x2b8], 0
xor eax, eax
mov ecx, 0x93
lea edi, [ebp - 0x2b4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp + 0x60]
lea eax, [ebp + 0x3c]
xor edi, edi
push eax
mov dword [ebp + 0x3c], edi
call fcn.004adf6b
add esp, 0xc
cmp dword [ebp + 0x3c], edi
mov dword [ebp + 0x74], edi
je 0x4809aa
mov eax, dword [ebp - 0x2b8]
and eax, 0x10
mov dword [ebp + 0x38], eax
je 0x48083b
cmp word [ebp - 0x28c], 0x2e
jne 0x48083b
cmp word [ebp - 0x28a], 0
je 0x480989
cmp word [ebp - 0x28a], 0x2e
jne 0x48083b
cmp word [ebp - 0x288], 0
je 0x480989
mov ecx, dword [ebp - 0x298]
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x29c]
push dword [ebp + 0x60]
xor eax, eax
or eax, ecx
xor edx, edx
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x48], eax
or edi, edx
call fcn.0044e844
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x44]
call fcn.00444fd8
cmp dword [ebp + 0x38], 0
jne 0x48092c
xor ecx, ecx
cmp word [ebp - 0x28c], cx
je 0x4808db
test byte [ebp - 0x2b7], 4
je 0x4808db
cmp dword [ebp - 0x5c], ecx
je 0x4808db
xor eax, eax
push eax
push 0x80
push 3
push eax
push 7
push eax
push dword [ebp + 0x44]
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x4c], eax
call fcn.00405c00
xor eax, eax
cmp dword [ebp + 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
je 0x4808d1
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0x4c]
call fcn.00402cc5
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
ja 0x4808e5
cmp dword [ebp - 0x18], ecx
jbe 0x4808fc
cmp edi, dword [ebp - 0x14]
jb 0x480981
ja 0x4808fc
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x18]
jb 0x480981
cmp dword [ebp - 0x20], ecx
ja 0x480906
cmp dword [ebp - 0x24], ecx
jbe 0x480915
cmp edi, dword [ebp - 0x20]
ja 0x480981
jb 0x480915
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x48], eax
ja 0x480981
cmp dword [ebp - 0x34], ecx
je 0x48092c
push 0
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x48]
call fcn.004b1100
or eax, edx
jne 0x480981
xor edi, edi
cmp word [ebp - 0x28c], di
je 0x4809a2
cmp dword [ebp + 0x38], edi
je 0x480943
cmp dword [ebp - 0x30], edi
jne 0x480948
jmp 0x480981
cmp dword [ebp - 0x38], edi
je 0x480981
push 8
call fcn.004aea68
cmp eax, edi
pop ecx
je 0x480963
push dword [ebp + 0x38]
mov ecx, eax
push dword [ebp + 0x44]
call fcn.0045fd7b
jmp 0x480965
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.0040fa5f
cmp dword [ebp + 4], edi
jne 0x480981
mov eax, dword [esi]
cmp eax, edi
jle 0x480981
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jge 0x4809a2
lea ecx, [ebp + 0x44]
call fcn.0043e825
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00405c76
test eax, eax
jne 0x4807fd
jmp 0x4809aa
lea ecx, [ebp + 0x44]
call fcn.0043e825
xor edi, edi
cmp dword [ebp + 4], edi
je 0x4809c3
movsx eax, bl
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004492d7
add esp, 0xc
cmp dword [ebp + 0x10], edi
mov dword [ebp + 0x74], edi
jle 0x480b09
mov edi, dword [ebp - 8]
mov ax, word [edi + 0x88]
test ah, 1
je 0x4809e9
and ax, 0xfeff
mov word [edi + 0x88], ax
xor edx, edx
cmp word [edi + 0x88], dx
jne 0x480da0
cmp dword [esi], edx
je 0x480da0
mov ecx, dword [ebp + 0x74]
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
test cl, cl
je 0x480a1d
cmp dword [ebp - 0x54], edx
jne 0x480a27
test cl, cl
jne 0x480afa
cmp dword [ebp - 0x38], 0
je 0x480afa
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
inc dword [ebp + 0x48]
cmp byte [ebp + 0x53], 0
lea eax, [eax + ecx*2]
mov dword [ebp + 0x38], eax
je 0x480a9f
mov eax, dword [ebp + 0x5c]
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0x38]
mov dword [ebp + 0x4c], eax
call edi
mov ecx, dword [ebp + 0x5c]
mov edi, eax
mov eax, dword [ebp + 0x4c]
inc edi
push 0x20000
lea eax, [edi + eax + 2]
push eax
call fcn.0049c13e
cmp dword [ebp + 0x4c], 0
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax]
jle 0x480a87
mov ecx, dword [ebp + 0x4c]
mov word [eax + ecx*2], 0xd
inc ecx
mov word [eax + ecx*2], 0xa
inc ecx
mov dword [ebp + 0x4c], ecx
mov ecx, dword [ebp + 0x4c]
push edi
push dword [ebp + 0x38]
lea eax, [eax + ecx*2]
push eax
call fcn.00405b5e
mov edi, dword [ebp - 8]
add esp, 0xc
jmp 0x480aeb
push eax
mov eax, dword [ebp + 0x5c]
push dword [eax]
mov ecx, edi
call fcn.00444692
cmp dword [ebp - 0x50], 0
je 0x480ad2
mov eax, dword [ebp + 0x68]
add eax, 2
push 0x4c1a3c
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x64]
mov ecx, edi
call fcn.004794ed
jmp 0x480aeb
mov eax, dword [ebp + 0x70]
cmp word [eax], 0
je 0x480aeb
push dword [ebp + 0x7c]
mov ecx, edi
push 0
push dword [ebp + 0x64]
push eax
call fcn.00434146
mov eax, dword [esi]
test eax, eax
jle 0x480afa
dec eax
mov dword [esi], eax
je 0x480d71
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x10]
jl 0x4809d2
lea ecx, [ebp + 0x3c]
call fcn.00402cfa
lea ecx, [ebp + 8]
call fcn.004a636c
lea ecx, [ebp + 8]
call fcn.0043e825
cmp dword [ebp - 0x58], 0
je 0x480dbc
lea ecx, [ebp + 0x28]
call fcn.004451da
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [ebp + 0x60]
call fcn.0044e844
push 0x4c5c50
lea ecx, [ebp - 4]
call fcn.00444fd8
and dword [ebp - 0x508], 0
xor eax, eax
and dword [ebp + 0x20], eax
mov ecx, 0x93
lea edi, [ebp - 0x504]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x508]
push eax
push dword [ebp - 4]
lea eax, [ebp + 0x20]
push eax
call fcn.004adf6b
add esp, 0xc
cmp dword [ebp + 0x20], 0
je 0x480c1a
mov edi, dword [ebp - 0x508]
and edi, 0x10
je 0x480c03
cmp word [ebp - 0x4dc], 0x2e
jne 0x480bba
cmp word [ebp - 0x4da], 0
je 0x480c03
cmp word [ebp - 0x4da], 0x2e
jne 0x480bba
cmp word [ebp - 0x4d8], 0
je 0x480c03
push dword [ebp - 0xc]
lea ecx, [ebp]
push dword [ebp + 0x60]
call fcn.0044e844
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp]
call fcn.00444fd8
push 8
call fcn.004aea68
test eax, eax
pop ecx
je 0x480bf0
push edi
push dword [ebp]
mov ecx, eax
call fcn.0045fd7b
jmp 0x480bf2
xor eax, eax
push eax
lea ecx, [ebp + 0x28]
call fcn.0040fa5f
lea ecx, [ebp]
call fcn.0043e825
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp + 0x20]
call fcn.00405c76
test eax, eax
jne 0x480b87
lea ecx, [ebp + 0x20]
call fcn.00402cfa
lea ecx, [ebp - 4]
call fcn.0043e825
xor edi, edi
cmp dword [ebp + 4], edi
je 0x480c43
movsx eax, bl
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x28]
call fcn.004492d7
add esp, 0xc
cmp dword [ebp - 0x60], edi
je 0x480d04
cmp dword [ebp + 0x30], edi
mov dword [ebp + 0x74], edi
jle 0x480d04
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x74]
push dword [eax + ecx*4]
lea ecx, [ebp + 0x40]
call fcn.0044e878
push dword [ebp - 0x4c]
lea ecx, [ebp + 0x40]
call fcn.00444fd8
cmp dword [ebp + 0x24], 0
je 0x480ca1
push 4
call fcn.004aea68
test eax, eax
pop ecx
je 0x480c94
mov ecx, dword [ebp + 0x40]
and dword [ebp + 0x40], 0
mov dword [eax], ecx
jmp 0x480c96
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
call fcn.0040fa5f
jmp 0x480ced
push dword [ebp + 0x7c]
mov ecx, edi
push dword [ebp + 0x78]
push esi
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x40]
push dword [ebp + 0x5c]
call fcn.004806a7
add dword [ebp + 0x48], eax
lea eax, [edi + 0x88]
mov cx, word [eax]
test ch, 1
je 0x480cda
and cx, 0xfeff
mov word [eax], cx
cmp word [eax], 0
jne 0x480da4
cmp dword [esi], 0
je 0x480da4
lea ecx, [ebp + 0x40]
call fcn.0043e825
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x30]
jl 0x480c5b
cmp dword [ebp + 0x24], 0
je 0x480dac
inc dword [ebp + 0x34]
mov eax, dword [ebp + 0x34]
cmp eax, dword [ebp - 0x28]
jge 0x480d2e
lea ecx, [ebp + 0x28]
call fcn.004a636c
lea ecx, [ebp + 0x28]
call fcn.0043e825
jmp 0x48078a
cmp dword [ebp + 0x1c], 0
jle 0x480dac
push dword [ebp - 0x1c]
lea eax, [ebp + 0x14]
push eax
call fcn.00441cc7
pop ecx
pop ecx
lea ecx, [ebp + 0x14]
call fcn.004a636c
lea ecx, [ebp + 0x28]
call fcn.004a636c
lea ecx, [ebp + 0x28]
call fcn.0043e825
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
and dword [ebp + 0x34], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
jmp 0x48077d
mov esi, dword [ebp + 0x48]
lea ecx, [ebp + 0x3c]
call fcn.00402cfa
lea ecx, [ebp + 8]
call fcn.004a636c
lea ecx, [ebp + 8]
call fcn.0043e825
lea ecx, [ebp + 0x14]
call fcn.004a636c
lea ecx, [ebp + 0x14]
call fcn.0043e825
mov eax, esi
jmp 0x480dcf
xor esi, esi
jmp 0x480d74
lea ecx, [ebp + 0x40]
call fcn.0043e825
lea ecx, [ebp + 0x28]
call fcn.004a636c
lea ecx, [ebp + 0x28]
call fcn.0043e825
lea ecx, [ebp + 0x14]
call fcn.004a636c
lea ecx, [ebp + 0x14]
call fcn.0043e825
mov eax, dword [ebp + 0x48]
pop edi
pop esi
pop ebx
add ebp, 0x54
leave
ret 0x24