Function at 0x1004e0a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1661
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, edx
mov esi, ecx
test edi, edi
je 0x1004e320
cmp word [edi], 0
je 0x1004e320
test ebx, ebx
jne 0x1004e107
mov eax, 0x80070057
jmp 0x1004e325
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
mov dword [esp + 0x3c], ebx
call ecx
xor eax, eax
mov dword [esp + 0x268], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x26c], 1
mov edx, dword [ebx]
mov ecx, dword [edx]
push 0x100c452c
push ebx
call ecx
mov dword [esp + 0x18], eax
test eax, eax
jl 0x1004e659
cmp eax, 1
je 0x1004e659
cmp dword [esp + 0x14], 0
jne 0x1004e172
mov dword [esp + 0x268], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, 0x80004005
jmp 0x1004e325
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1004e181
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x354]
test eax, eax
je 0x1004e19e
push eax
call fcn.1005758d
add esp, 4
mov dword [esi + 0x354], 0
mov ecx, dword [esi + 0x14]
push 0
push 0x20000000
neg ecx
push 3
sbb ecx, ecx
push 0
and ecx, 0xc0000000
push 1
add ecx, 0xc0000000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x1004e293
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1004e235
cmp eax, 0x20
je 0x1004e235
cmp eax, 0xa7
je 0x1004e235
cmp eax, 0x21
je 0x1004e235
cmp eax, 0x13
je 0x1004e235
test eax, eax
jle 0x1004e201
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e21b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, esi
jmp 0x1004e325
push 0
push 0
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x1004e28c
call fcn.10002c20
mov esi, eax
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e272
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, esi
jmp 0x1004e325
mov dword [esi + 0x14], 1
push 0x1ff
xor edi, edi
lea edx, [esp + 0x59]
push edi
push edx
mov byte [esp + 0x60], 0
call fcn.10059a00
mov eax, dword [esi + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
lea edx, [esi + 8]
push edx
mov eax, 0x200
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.100035b0
mov edi, eax
test edi, edi
jl 0x1004e40d
cmp edi, 1
je 0x1004e40d
cmp dword [esp + 0x54], 0x5120372
je 0x1004e34b
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e30d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, 0xe00e1001
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004e253
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
push 0x200
push edi
push edx
call fcn.1009f830
or eax, edx
je 0x1004e3b1
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e394
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, 0xe0037001
jmp 0x1004e325
mov edx, dword [esp + 0x2c]
push 0
push 0x200
push edi
push edx
call fcn.1009f780
mov dword [esp + 0x2c], eax
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], edx
mov dword [esi + 0x60], 0
test eax, eax
jne 0x1004e43f
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x70]
mov edx, 0x200
mul edx
push esi
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.1004fc60
mov edi, eax
test edi, edi
jl 0x1004e40d
cmp edi, 1
jne 0x1004e593
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e425
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, edi
jmp 0x1004e325
cmp eax, 1
jne 0x1004e4d7
lea edx, [esp + 0x54]
push edx
call fcn.1004fa50
cmp dword [esp + 0x6c], eax
jne 0x1004e37c
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esi + 0x348], eax
shr eax, 9
mov dword [esi + 0x34c], eax
mov eax, dword [esp + 0x70]
mov ecx, 0x200
mov dword [esi + 0x350], edx
mul ecx
mov dword [esi + 0x50], 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.1004f930
mov edi, eax
test edi, edi
jl 0x1004e4a5
cmp edi, 1
jne 0x1004e581
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e4bd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, edi
jmp 0x1004e325
cmp eax, 2
jne 0x1004e624
mov edi, dword [esp + 0x60]
mov ecx, 0x200
lea edx, [esp + 0x54]
mov dword [esp + 0x60], 0
call fcn.10051a80
cmp edi, eax
jne 0x1004e37c
test byte [esp + 0x5c], 1
mov dword [esi + 0x50], 2
je 0x1004e53b
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x58]
push eax
push esi
mov dword [esi + 0x60], 1
call fcn.1004eba0
mov edi, eax
test edi, edi
jl 0x1004e40d
cmp edi, 1
jne 0x1004e581
jmp 0x1004e40d
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esi + 0x348], eax
shr eax, 9
mov dword [esi + 0x34c], eax
mov eax, dword [esp + 0x70]
mov ecx, 0x200
mov dword [esi + 0x350], edx
mul ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.1004f930
mov edi, eax
test edi, edi
jl 0x1004e40d
cmp edi, 1
je 0x1004e40d
mov eax, esi
call fcn.1004e690
test eax, eax
jne 0x1004e593
mov dword [esi + 0x14], 1
lea edx, [esp + 0x3c]
push edx
call fcn.10012390
xor eax, eax
mov byte [esp + 0x268], 2
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
shrd eax, ecx, 9
shr ecx, 9
lea edi, [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.1004fac0
mov edi, eax
test edi, edi
jl 0x1004e616
cmp edi, 1
je 0x1004e616
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x40]
call fcn.100057d0
mov eax, dword [esp + 0x14]
push 1
push eax
push esi
mov eax, edi
call fcn.10003070
mov edi, eax
test edi, edi
jne 0x1004e608
mov dword [esi + 0x18], 1
lea esi, [esp + 0x3c]
call fcn.100058e0
jmp 0x1004e40d
lea esi, [esp + 0x3c]
call fcn.100058e0
jmp 0x1004e4a5
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e63c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, 0xe0037000
jmp 0x1004e325
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e671
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, dword [esp + 0x18]
jmp 0x1004e325