Function at 0x4831e1
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 + 0x24], ecx
jne 0x483205
cmp word [eax + 2], 0
mov byte [ebp + 0x53], dl
je 0x483209
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 + 0x10], 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 - 8], 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 0x483296
mov dword [ebp - 0x30], edx
mov edi, dword [esi + 0x30]
lea ecx, [ebp]
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edi
call fcn.0044684a
cmp dword [ebp + 0x10], 0
jne 0x4838d2
mov eax, dword [ebp + 0x78]
test eax, eax
mov dword [ebp - 0x60], eax
jl 0x4832c4
dec dword [ebp + 0x78]
cmp dword [ebp + 0x10], 0
je 0x4832d8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x20]
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 + 0x14]
inc eax
inc eax
sar eax, 1
mov dword [ebp - 0xc], eax
call fcn.0044684a
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 + 0x44]
xor edi, edi
push eax
mov dword [ebp + 0x44], edi
call fcn.004b3c03
add esp, 0xc
cmp dword [ebp + 0x44], edi
mov dword [ebp + 0x74], edi
je 0x4834f1
cmp byte [0x4e12e4], 0
jle 0x4838e6
mov eax, dword [ebp - 0x2b8]
and eax, 0x10
mov dword [ebp + 0x2c], eax
je 0x483382
cmp word [ebp - 0x28c], 0x2e
jne 0x483382
cmp word [ebp - 0x28a], 0
je 0x4834d0
cmp word [ebp - 0x28a], 0x2e
jne 0x483382
cmp word [ebp - 0x288], 0
je 0x4834d0
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 + 0x40]
mov dword [ebp - 0x48], eax
or edi, edx
call fcn.00450608
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x40]
call fcn.004465fa
cmp dword [ebp + 0x2c], 0
jne 0x483473
xor ecx, ecx
cmp word [ebp - 0x28c], cx
je 0x483422
test byte [ebp - 0x2b7], 4
je 0x483422
cmp dword [ebp - 0x5c], ecx
je 0x483422
xor eax, eax
push eax
push 0x80
push 3
push eax
push 7
push eax
push dword [ebp + 0x40]
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x4c], eax
call fcn.00405c6d
xor eax, eax
cmp dword [ebp + 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
je 0x483418
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.00402d2b
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
ja 0x48342c
cmp dword [ebp - 0x18], ecx
jbe 0x483443
cmp edi, dword [ebp - 0x14]
jb 0x4834c8
ja 0x483443
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x18]
jb 0x4834c8
cmp dword [ebp - 0x20], ecx
ja 0x48344d
cmp dword [ebp - 0x24], ecx
jbe 0x48345c
cmp edi, dword [ebp - 0x20]
ja 0x4834c8
jb 0x48345c
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x48], eax
ja 0x4834c8
cmp dword [ebp - 0x34], ecx
je 0x483473
push 0
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x48]
call fcn.004b6e00
or eax, edx
jne 0x4834c8
xor edi, edi
cmp word [ebp - 0x28c], di
je 0x4834e9
cmp dword [ebp + 0x2c], edi
je 0x48348a
cmp dword [ebp - 0x30], edi
jne 0x48348f
jmp 0x4834c8
cmp dword [ebp - 0x38], edi
je 0x4834c8
push 8
call fcn.004b4768
cmp eax, edi
pop ecx
je 0x4834aa
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebp + 0x40]
call fcn.0046307a
jmp 0x4834ac
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
call fcn.0040fb82
cmp dword [ebp - 8], edi
jne 0x4834c8
mov eax, dword [esi]
cmp eax, edi
jle 0x4834c8
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jge 0x4834e9
lea ecx, [ebp + 0x40]
call fcn.0043fe25
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp + 0x44]
call fcn.00405ce3
test eax, eax
jne 0x483337
jmp 0x4834f1
lea ecx, [ebp + 0x40]
call fcn.0043fe25
xor edi, edi
cmp dword [ebp - 8], edi
je 0x48350a
movsx eax, bl
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.0044a9b2
add esp, 0xc
cmp dword [ebp + 0x1c], edi
mov dword [ebp + 0x74], edi
jle 0x483654
cmp byte [0x4e12e4], 0
jle 0x4838e6
mov ecx, dword [ebp + 0x24]
add ecx, 0x88
mov ax, word [ecx]
test ah, 1
je 0x48353b
and ax, 0xfeff
mov word [ecx], ax
cmp word [ecx], di
jne 0x48392a
cmp dword [esi], edi
je 0x48392a
mov ecx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
test cl, cl
je 0x483569
cmp dword [ebp - 0x54], edi
jne 0x483572
test cl, cl
jne 0x483645
cmp dword [ebp - 0x38], edi
je 0x483645
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 + 0x2c], eax
je 0x4835e9
mov eax, dword [ebp + 0x5c]
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0x2c]
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.004a1223
cmp dword [ebp + 0x4c], 0
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax]
jle 0x4835d2
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 + 0x2c]
lea eax, [eax + ecx*2]
push eax
call fcn.00405c0c
add esp, 0xc
xor edi, edi
jmp 0x483634
mov ecx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x5c]
push dword [eax]
call fcn.00445c44
cmp dword [ebp - 0x50], edi
je 0x48361c
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x24]
add eax, 2
push 0x4c6a64
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x64]
call fcn.0047b940
jmp 0x483634
mov eax, dword [ebp + 0x70]
cmp word [eax], di
je 0x483634
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x24]
push edi
push dword [ebp + 0x64]
push eax
call fcn.00434f28
mov eax, dword [esi]
cmp eax, edi
jle 0x483645
dec eax
cmp eax, edi
mov dword [esi], eax
je 0x4838fb
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x1c]
jl 0x483516
lea ecx, [ebp + 0x44]
call fcn.00402d60
lea ecx, [ebp + 0x14]
call fcn.0045a9f0
lea ecx, [ebp + 0x14]
call fcn.0043fe25
cmp dword [ebp - 0x58], edi
je 0x483953
lea ecx, [ebp + 0x30]
call fcn.0044684a
push dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push dword [ebp + 0x60]
call fcn.00450608
push 0x4cad18
lea ecx, [ebp + 0xc]
call fcn.004465fa
and dword [ebp - 0x508], 0
xor eax, eax
and dword [ebp + 0x28], eax
mov ecx, 0x93
lea edi, [ebp - 0x504]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x508]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x28]
push eax
call fcn.004b3c03
add esp, 0xc
cmp dword [ebp + 0x28], 0
je 0x483771
cmp byte [0x4e12e4], 0
jle 0x48392e
mov edi, dword [ebp - 0x508]
and edi, 0x10
je 0x48375a
cmp word [ebp - 0x4dc], 0x2e
jne 0x483711
cmp word [ebp - 0x4da], 0
je 0x48375a
cmp word [ebp - 0x4da], 0x2e
jne 0x483711
cmp word [ebp - 0x4d8], 0
je 0x48375a
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [ebp + 0x60]
call fcn.00450608
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 4]
call fcn.004465fa
push 8
call fcn.004b4768
test eax, eax
pop ecx
je 0x483747
push edi
push dword [ebp - 4]
mov ecx, eax
call fcn.0046307a
jmp 0x483749
xor eax, eax
push eax
lea ecx, [ebp + 0x30]
call fcn.0040fb82
lea ecx, [ebp - 4]
call fcn.0043fe25
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp + 0x28]
call fcn.00405ce3
test eax, eax
jne 0x4836d1
lea ecx, [ebp + 0x28]
call fcn.00402d60
lea ecx, [ebp + 0xc]
call fcn.0043fe25
xor edi, edi
cmp dword [ebp - 8], edi
je 0x48379a
movsx eax, bl
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x30]
call fcn.0044a9b2
add esp, 0xc
cmp dword [ebp - 0x60], edi
je 0x483868
cmp dword [ebp + 0x38], edi
mov dword [ebp + 0x74], edi
jle 0x483868
mov edi, dword [ebp + 0x24]
cmp byte [0x4e12e4], 0
jle 0x483943
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x74]
push dword [eax + ecx*4]
lea ecx, [ebp + 0x3c]
call fcn.0045063c
push dword [ebp - 0x4c]
lea ecx, [ebp + 0x3c]
call fcn.004465fa
cmp dword [ebp + 0x10], 0
je 0x483805
push 4
call fcn.004b4768
test eax, eax
pop ecx
je 0x4837f8
mov ecx, dword [ebp + 0x3c]
and dword [ebp + 0x3c], 0
mov dword [eax], ecx
jmp 0x4837fa
xor eax, eax
push eax
lea ecx, [ebp]
call fcn.0040fb82
jmp 0x483851
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 + 0x3c]
push dword [ebp + 0x5c]
call fcn.004831e1
add dword [ebp + 0x48], eax
lea eax, [edi + 0x88]
mov cx, word [eax]
test ch, 1
je 0x48383e
and cx, 0xfeff
mov word [eax], cx
cmp word [eax], 0
jne 0x48393b
cmp dword [esi], 0
je 0x48393b
lea ecx, [ebp + 0x3c]
call fcn.0043fe25
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x38]
jl 0x4837b2
cmp byte [0x4e12e4], 0
jle 0x483943
cmp dword [ebp + 0x10], 0
je 0x483943
inc dword [ebp + 0x20]
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x28]
jge 0x48389f
lea ecx, [ebp + 0x30]
call fcn.0045a9f0
lea ecx, [ebp + 0x30]
call fcn.0043fe25
jmp 0x4832c4
cmp dword [ebp + 8], 0
jle 0x483943
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.00443441
pop ecx
pop ecx
lea ecx, [ebp]
call fcn.0045a9f0
lea ecx, [ebp + 0x30]
call fcn.0045a9f0
lea ecx, [ebp + 0x30]
call fcn.0043fe25
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
and dword [ebp + 0x20], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
jmp 0x4832b7
lea ecx, [ebp + 0x44]
call fcn.00402d60
lea ecx, [ebp + 0x14]
call fcn.0045a9f0
lea ecx, [ebp + 0x14]
jmp 0x48394e
mov esi, dword [ebp + 0x48]
lea ecx, [ebp + 0x44]
call fcn.00402d60
lea ecx, [ebp + 0x14]
call fcn.0045a9f0
lea ecx, [ebp + 0x14]
call fcn.0043fe25
lea ecx, [ebp]
call fcn.0045a9f0
lea ecx, [ebp]
call fcn.0043fe25
mov eax, esi
jmp 0x483966
xor esi, esi
jmp 0x4838fe
lea ecx, [ebp + 0x28]
call fcn.00402d60
lea ecx, [ebp + 0xc]
jmp 0x48393e
lea ecx, [ebp + 0x3c]
call fcn.0043fe25
lea ecx, [ebp + 0x30]
call fcn.0045a9f0
lea ecx, [ebp + 0x30]
call fcn.0043fe25
lea ecx, [ebp]
call fcn.0045a9f0
lea ecx, [ebp]
call fcn.0043fe25
mov eax, dword [ebp + 0x48]
pop edi
pop esi
pop ebx
add ebp, 0x54
leave
ret 0x24