Function at 0x4d15b0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x61432e
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov edi, dword [esp + 0x104]
mov ebx, dword [esp + 0xfc]
xor ebp, ebp
mov dword [esp + 0xf4], ebp
mov esi, ebx
mov dword [esp + 0x48], ebp
call fcn.00443850
mov dword [esp + 0xf4], ebp
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x110]
mov edx, eax
and eax, ecx
mov esi, ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
cmp eax, 0xffffffff
jne 0x4d1662
mov ecx, dword [esp + 0x100]
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4d1ccc
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
cmp esi, ebp
ja 0x4d166e
cmp edx, ebp
jbe 0x4d1ccc
cmp esi, 0xffffffff
ja 0x4d1ccc
jb 0x4d1682
cmp edx, 0xffffffff
jae 0x4d1ccc
mov eax, dword [edi]
cmp dword [eax], ebp
je 0x4d1691
cmp dword [eax + 4], ebp
jne 0x4d172f
cmp esi, ebp
jb 0x4d16aa
ja 0x4d169f
cmp edx, 0x10000
jbe 0x4d16aa
mov ecx, 0x10000
mov dword [esp + 0x28], ebp
jmp 0x4d16b0
mov ecx, edx
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x100]
push ebp
push ebp
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004c07a0
add esp, 0x10
mov ebx, eax
mov dword [esp + 0xf4], 2
mov esi, dword [edi]
add dword [esi + 8], 0xffffffff
jne 0x4d16ea
xor edi, edi
call fcn.004c24f0
mov edi, dword [esp + 0x104]
mov eax, dword [ebx]
inc dword [eax + 8]
mov dword [edi], eax
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x1c]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebp
jne 0x4d1728
xor edi, edi
call fcn.004c24f0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005c396f
mov edi, dword [esp + 0x108]
add esp, 4
mov dword [esp + 0x1c], ebp
mov ebx, dword [esp + 0xfc]
mov eax, dword [edi]
cmp dword [eax], ebp
je 0x4d1ccc
cmp dword [eax + 4], ebp
je 0x4d1ccc
or ecx, 0xffffffff
push ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x4c], 1
mov byte [esp + 0x2b], 0
call fcn.004c2dd0
mov dword [esp + 0xf4], 3
lea esi, [esp + 0x64]
call fcn.004c2ea0
cmp eax, 1
jne 0x4d1b07
mov eax, dword [esp + 0xa4]
cmp eax, 1
jne 0x4d17a1
mov eax, dword [esp + 0x108]
mov dword [eax], 1
jmp 0x4d17af
cmp eax, 2
jne 0x4d17af
mov ecx, dword [esp + 0x108]
mov dword [ecx], eax
cmp dword [esp + 0xa0], 0
mov dword [esp + 0x1c], 0
jbe 0x4d1b07
mov edi, dword [esp + 0x100]
xor ebp, ebp
mov edi, edi
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x4d17e6
xor esi, esi
mov byte [esp + 0x23], 0
xor bl, bl
jmp 0x4d1859
mov edx, dword [esp + 0x84]
mov edx, dword [edx + 0x10]
mov esi, dword [ecx + ebp + 0x10]
cmp edx, dword [ecx + ebp + 0xc]
lea eax, [ecx + ebp]
je 0x4d1821
mov ecx, dword [0x72b628]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.005c5ac3
mov ecx, dword [esp + 0x8c]
add esp, 0xc
mov byte [esp + 0x23], 0
test eax, eax
jne 0x4d1826
mov byte [esp + 0x23], 1
test ecx, ecx
jne 0x4d182e
xor bl, bl
jmp 0x4d1859
test dword [ecx + ebp + 0x24], 0x20000000
lea eax, [ecx + ebp]
jne 0x4d1857
mov ecx, dword [0x72b630]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push eax
call fcn.005c5ac3
add esp, 0xc
test eax, eax
je 0x4d1857
xor bl, bl
jmp 0x4d1859
mov bl, 1
test esi, esi
je 0x4d199f
test bl, bl
jne 0x4d186f
cmp byte [esp + 0x23], bl
je 0x4d199f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
call fcn.004c2fd0
test al, al
jne 0x4d199f
lea eax, [esp + 0x4c]
push eax
call fcn.00443eb0
mov byte [esp + 0xf4], 4
cmp byte [esp + 0x23], 0
je 0x4d18ec
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4d18ad
or eax, 0xffffffff
jmp 0x4d18b1
mov eax, dword [eax + ebp + 0x14]
push 0
push esi
push 0
push eax
lea ecx, [esp + 0xc8]
push edi
push ecx
call fcn.004d1fb0
add esp, 0x18
mov byte [esp + 0xf4], 5
push eax
lea edx, [esp + 0x50]
push edx
call fcn.004d34c0
mov byte [esp + 0xf4], 4
lea eax, [esp + 0xb8]
jmp 0x4d193d
test bl, bl
je 0x4d1943
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4d1900
or eax, 0xffffffff
jmp 0x4d1904
mov eax, dword [eax + ebp + 0x14]
push 0
push esi
push 0
push eax
lea ecx, [esp + 0xe0]
push edi
push ecx
call fcn.004d1cf0
add esp, 0x18
mov byte [esp + 0xf4], 6
push eax
lea edx, [esp + 0x50]
push edx
call fcn.004d34c0
mov byte [esp + 0xf4], 4
lea eax, [esp + 0xd0]
push eax
call fcn.004d3440
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
sar eax, 2
test eax, eax
je 0x4d198d
xor esi, esi
test eax, eax
jbe 0x4d1981
cmp esi, eax
jb 0x4d1961
call fcn.005c475a
mov ecx, dword [esp + 0x58]
lea edi, [ecx + esi*4]
lea eax, [esp + 0x34]
call fcn.004e3800
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
inc esi
sar eax, 2
cmp esi, eax
jb 0x4d1961
mov edi, dword [esp + 0x100]
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], 3
lea edx, [esp + 0x4c]
push edx
call fcn.004d3440
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x28
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xa0]
jb 0x4d17d0
cmp byte [esp + 0x1b], 0
je 0x4d1b07
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xb4]
xor ebx, ebx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
call fcn.004c30f0
mov edi, eax
mov eax, dword [esp + 0x24]
mov ebp, edx
cmp eax, ebx
je 0x4d1a89
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4d1a89
xor edx, edx
lea esi, [ecx + eax]
cmp edx, dword [esp + 0x30]
ja 0x4d1a89
jb 0x4d1a17
cmp esi, dword [esp + 0x2c]
ja 0x4d1a89
cmp ecx, 0x100000
jb 0x4d1a24
mov ecx, 0x100000
push 0
push eax
mov eax, dword [esp + 0x108]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.004c07a0
mov byte [esp + 0x104], 7
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004e3e70
add esp, 0x18
mov byte [esp + 0xf4], 8
mov ebx, dword [esp + 0x114]
call fcn.0040dcb0
mov byte [esp + 0xf4], 7
lea ecx, [esp + 0x1c]
call fcn.0040b810
mov byte [esp + 0xf4], 3
lea ebx, [esp + 0x24]
call fcn.004c2420
cmp ebp, dword [esp + 0x30]
ja 0x4d1afc
jb 0x4d1a97
cmp edi, dword [esp + 0x2c]
jae 0x4d1afc
mov eax, dword [esp + 0x2c]
sub eax, edi
cmp eax, 0x4000
jbe 0x4d1aa9
mov eax, 0x4000
mov edx, dword [esp + 0x100]
push ebp
push edi
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.004c07a0
add esp, 0x10
mov byte [esp + 0xf4], 9
lea eax, [esp + 0x1c]
call fcn.00443930
test al, al
jne 0x4d1ae6
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.004e3800
jmp 0x4d1aeb
mov byte [esp + 0x1b], 0
mov byte [esp + 0xf4], 3
lea ebx, [esp + 0x1c]
call fcn.004c2420
cmp byte [esp + 0x1b], 0
jne 0x4d1c69
mov edi, dword [esp + 0x104]
lea eax, [esp + 0x34]
call fcn.004e3800
mov eax, dword [esp + 0x30]
test eax, eax
ja 0x4d1b9b
jb 0x4d1b2b
cmp dword [esp + 0x2c], 0x30000
ja 0x4d1b9b
test eax, eax
ja 0x4d1b3d
cmp dword [esp + 0x2c], 0x10000
jbe 0x4d1c69
mov edx, dword [esp + 0x100]
mov ecx, dword [esp + 0x2c]
push 0
push 0x10000
push edx
lea eax, [esp + 0x28]
add ecx, 0xffff0000
push eax
call fcn.004c07a0
add esp, 0x10
mov byte [esp + 0xf4], 0xa
lea eax, [esp + 0x1c]
call fcn.00443930
test al, al
jne 0x4d1b8a
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.004e3800
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], 3
lea ebx, [esp + 0x1c]
jmp 0x4d1c5d
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x100]
mov ecx, esi
mov edx, ebp
shrd ecx, edx, 1
shr edx, 1
add ecx, 0xffff8000
adc edx, 0xffffffff
push edx
push ecx
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x10000
call fcn.004c07a0
add esp, 0x10
mov bl, 0xb
mov byte [esp + 0xf4], bl
lea eax, [esp + 0x24]
call fcn.00443930
test al, al
jne 0x4d1c51
lea edi, [esp + 0x24]
lea eax, [esp + 0x34]
call fcn.004e3800
mov edx, dword [esp + 0x100]
add esi, 0xffff0000
adc ebp, 0xffffffff
push ebp
push esi
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, 0x10000
call fcn.004c07a0
add esp, 0x10
mov byte [esp + 0xf4], 0xc
lea eax, [esp + 0x1c]
call fcn.00443930
test al, al
jne 0x4d1c41
lea edi, [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.004e3800
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf4], bl
lea ebx, [esp + 0x1c]
call fcn.004c2420
mov byte [esp + 0xf4], 3
lea ebx, [esp + 0x24]
call fcn.004c2420
cmp byte [esp + 0x1b], 0
je 0x4d1cb1
cmp byte [esp + 0x3c], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
not eax
not ecx
jne 0x4d1cb1
push ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004d3110
add esp, 0xc
mov byte [esp + 0xf4], 0xd
mov ebx, dword [esp + 0xfc]
push eax
call fcn.004d0f50
mov byte [esp + 0xf4], 3
lea ebx, [esp + 0x24]
call fcn.004c2420
mov byte [esp + 0xf4], 0
lea edx, [esp + 0x64]
push edx
call fcn.004c2e50
mov eax, dword [esp + 0xfc]
jmp 0x4d1cce
mov eax, ebx
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret