Function at 0x480519
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 0x48053d
cmp word [eax + 2], 0
mov byte [ebp + 0x53], dl
je 0x480541
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 0x4805ce
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.004450a0
cmp dword [ebp + 0x24], 0
jne 0x480bcf
mov eax, dword [ebp + 0x78]
test eax, eax
mov dword [ebp - 0x60], eax
jl 0x4805fc
dec dword [ebp + 0x78]
cmp dword [ebp + 0x24], 0
je 0x480610
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.004450a0
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.004ad1e9
add esp, 0xc
cmp dword [ebp + 0x3c], edi
mov dword [ebp + 0x74], edi
je 0x48081c
mov eax, dword [ebp - 0x2b8]
and eax, 0x10
mov dword [ebp + 0x38], eax
je 0x4806ad
cmp word [ebp - 0x28c], 0x2e
jne 0x4806ad
cmp word [ebp - 0x28a], 0
je 0x4807fb
cmp word [ebp - 0x28a], 0x2e
jne 0x4806ad
cmp word [ebp - 0x288], 0
je 0x4807fb
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.0044e68a
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x44]
call fcn.00444e9e
cmp dword [ebp + 0x38], 0
jne 0x48079e
xor ecx, ecx
cmp word [ebp - 0x28c], cx
je 0x48074d
test byte [ebp - 0x2b7], 4
je 0x48074d
cmp dword [ebp - 0x5c], ecx
je 0x48074d
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.00405bea
xor eax, eax
cmp dword [ebp + 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
je 0x480743
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.00402cb0
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
ja 0x480757
cmp dword [ebp - 0x18], ecx
jbe 0x48076e
cmp edi, dword [ebp - 0x14]
jb 0x4807f3
ja 0x48076e
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x18]
jb 0x4807f3
cmp dword [ebp - 0x20], ecx
ja 0x480778
cmp dword [ebp - 0x24], ecx
jbe 0x480787
cmp edi, dword [ebp - 0x20]
ja 0x4807f3
jb 0x480787
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x48], eax
ja 0x4807f3
cmp dword [ebp - 0x34], ecx
je 0x48079e
push 0
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x48]
call fcn.004b0380
or eax, edx
jne 0x4807f3
xor edi, edi
cmp word [ebp - 0x28c], di
je 0x480814
cmp dword [ebp + 0x38], edi
je 0x4807b5
cmp dword [ebp - 0x30], edi
jne 0x4807ba
jmp 0x4807f3
cmp dword [ebp - 0x38], edi
je 0x4807f3
push 8
call fcn.004adce8
cmp eax, edi
pop ecx
je 0x4807d5
push dword [ebp + 0x38]
mov ecx, eax
push dword [ebp + 0x44]
call fcn.0045fc0d
jmp 0x4807d7
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.0040f92f
cmp dword [ebp + 4], edi
jne 0x4807f3
mov eax, dword [esi]
cmp eax, edi
jle 0x4807f3
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jge 0x480814
lea ecx, [ebp + 0x44]
call fcn.0043e679
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00405c60
test eax, eax
jne 0x48066f
jmp 0x48081c
lea ecx, [ebp + 0x44]
call fcn.0043e679
xor edi, edi
cmp dword [ebp + 4], edi
je 0x480835
movsx eax, bl
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004490eb
add esp, 0xc
cmp dword [ebp + 0x10], edi
mov dword [ebp + 0x74], edi
jle 0x48097b
mov edi, dword [ebp - 8]
mov ax, word [edi + 0x88]
test ah, 1
je 0x48085b
and ax, 0xfeff
mov word [edi + 0x88], ax
xor edx, edx
cmp word [edi + 0x88], dx
jne 0x480c12
cmp dword [esi], edx
je 0x480c12
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 0x48088f
cmp dword [ebp - 0x54], edx
jne 0x480899
test cl, cl
jne 0x48096c
cmp dword [ebp - 0x38], 0
je 0x48096c
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 0x480911
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.0049b71c
cmp dword [ebp + 0x4c], 0
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax]
jle 0x4808f9
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.00405b32
mov edi, dword [ebp - 8]
add esp, 0xc
jmp 0x48095d
push eax
mov eax, dword [ebp + 0x5c]
push dword [eax]
mov ecx, edi
call fcn.0044451e
cmp dword [ebp - 0x50], 0
je 0x480944
mov eax, dword [ebp + 0x68]
add eax, 2
push 0x4c0a1c
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x64]
mov ecx, edi
call fcn.0047937f
jmp 0x48095d
mov eax, dword [ebp + 0x70]
cmp word [eax], 0
je 0x48095d
push dword [ebp + 0x7c]
mov ecx, edi
push 0
push dword [ebp + 0x64]
push eax
call fcn.00433f41
mov eax, dword [esi]
test eax, eax
jle 0x48096c
dec eax
mov dword [esi], eax
je 0x480be3
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x10]
jl 0x480844
lea ecx, [ebp + 0x3c]
call fcn.00402ce5
lea ecx, [ebp + 8]
call fcn.00457924
lea ecx, [ebp + 8]
call fcn.0043e679
cmp dword [ebp - 0x58], 0
je 0x480c2e
lea ecx, [ebp + 0x28]
call fcn.004450a0
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [ebp + 0x60]
call fcn.0044e68a
push 0x4c4c38
lea ecx, [ebp - 4]
call fcn.00444e9e
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.004ad1e9
add esp, 0xc
cmp dword [ebp + 0x20], 0
je 0x480a8c
mov edi, dword [ebp - 0x508]
and edi, 0x10
je 0x480a75
cmp word [ebp - 0x4dc], 0x2e
jne 0x480a2c
cmp word [ebp - 0x4da], 0
je 0x480a75
cmp word [ebp - 0x4da], 0x2e
jne 0x480a2c
cmp word [ebp - 0x4d8], 0
je 0x480a75
push dword [ebp - 0xc]
lea ecx, [ebp]
push dword [ebp + 0x60]
call fcn.0044e68a
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp]
call fcn.00444e9e
push 8
call fcn.004adce8
test eax, eax
pop ecx
je 0x480a62
push edi
push dword [ebp]
mov ecx, eax
call fcn.0045fc0d
jmp 0x480a64
xor eax, eax
push eax
lea ecx, [ebp + 0x28]
call fcn.0040f92f
lea ecx, [ebp]
call fcn.0043e679
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp + 0x20]
call fcn.00405c60
test eax, eax
jne 0x4809f9
lea ecx, [ebp + 0x20]
call fcn.00402ce5
lea ecx, [ebp - 4]
call fcn.0043e679
xor edi, edi
cmp dword [ebp + 4], edi
je 0x480ab5
movsx eax, bl
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x28]
call fcn.004490eb
add esp, 0xc
cmp dword [ebp - 0x60], edi
je 0x480b76
cmp dword [ebp + 0x30], edi
mov dword [ebp + 0x74], edi
jle 0x480b76
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.0044e6be
push dword [ebp - 0x4c]
lea ecx, [ebp + 0x40]
call fcn.00444e9e
cmp dword [ebp + 0x24], 0
je 0x480b13
push 4
call fcn.004adce8
test eax, eax
pop ecx
je 0x480b06
mov ecx, dword [ebp + 0x40]
and dword [ebp + 0x40], 0
mov dword [eax], ecx
jmp 0x480b08
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
call fcn.0040f92f
jmp 0x480b5f
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.00480519
add dword [ebp + 0x48], eax
lea eax, [edi + 0x88]
mov cx, word [eax]
test ch, 1
je 0x480b4c
and cx, 0xfeff
mov word [eax], cx
cmp word [eax], 0
jne 0x480c16
cmp dword [esi], 0
je 0x480c16
lea ecx, [ebp + 0x40]
call fcn.0043e679
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x30]
jl 0x480acd
cmp dword [ebp + 0x24], 0
je 0x480c1e
inc dword [ebp + 0x34]
mov eax, dword [ebp + 0x34]
cmp eax, dword [ebp - 0x28]
jge 0x480ba0
lea ecx, [ebp + 0x28]
call fcn.00457924
lea ecx, [ebp + 0x28]
call fcn.0043e679
jmp 0x4805fc
cmp dword [ebp + 0x1c], 0
jle 0x480c1e
push dword [ebp - 0x1c]
lea eax, [ebp + 0x14]
push eax
call fcn.00441b53
pop ecx
pop ecx
lea ecx, [ebp + 0x14]
call fcn.00457924
lea ecx, [ebp + 0x28]
call fcn.00457924
lea ecx, [ebp + 0x28]
call fcn.0043e679
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 0x4805ef
mov esi, dword [ebp + 0x48]
lea ecx, [ebp + 0x3c]
call fcn.00402ce5
lea ecx, [ebp + 8]
call fcn.00457924
lea ecx, [ebp + 8]
call fcn.0043e679
lea ecx, [ebp + 0x14]
call fcn.00457924
lea ecx, [ebp + 0x14]
call fcn.0043e679
mov eax, esi
jmp 0x480c41
xor esi, esi
jmp 0x480be6
lea ecx, [ebp + 0x40]
call fcn.0043e679
lea ecx, [ebp + 0x28]
call fcn.00457924
lea ecx, [ebp + 0x28]
call fcn.0043e679
lea ecx, [ebp + 0x14]
call fcn.00457924
lea ecx, [ebp + 0x14]
call fcn.0043e679
mov eax, dword [ebp + 0x48]
pop edi
pop esi
pop ebx
add ebp, 0x54
leave
ret 0x24