Function at 0x1005dc10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ad517
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
test esi, esi
je 0x1005e125
cmp word [esi], 0
je 0x1005e125
test edi, edi
je 0x1005e125
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
mov dword [esp + 0x34], edi
call ecx
xor eax, eax
mov dword [esp + 0x290], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x294], 1
mov edx, dword [edi]
mov ecx, dword [edx]
push 0x100d0d04
push edi
call ecx
mov dword [esp + 0x28], eax
test eax, eax
jl 0x1005e0f4
cmp eax, 1
je 0x1005e0f4
cmp dword [esp + 0x10], 0
jne 0x1005dce6
mov dword [esp + 0x290], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, 0x80004005
jmp 0x1005e12a
mov eax, ebx
call fcn.1005e830
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x1005dd04
push eax
call fcn.100628c6
add esp, 4
mov dword [ebx + 0x60], 0
mov ecx, dword [ebx + 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 esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x290], 2
cmp edi, 0xffffffff
jne 0x1005ddbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 0x14], 0
jne 0x1005dddd
cmp eax, 5
je 0x1005dd6a
cmp eax, 0x20
je 0x1005dd6a
cmp eax, 0xa7
je 0x1005dd6a
cmp eax, 0x21
je 0x1005dd6a
cmp eax, 0x13
jne 0x1005dddd
push 0
push 0
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x1005ddb5
call fcn.10002d30
mov edi, eax
lea esi, [esp + 0x14]
call fcn.1000fee0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005de0e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1005de0e
mov dword [ebx + 0x14], 1
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1005de2c
call fcn.10002d30
jmp 0x1005ddeb
test eax, eax
jle 0x1005ddeb
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea esi, [esp + 0x14]
call fcn.1000fee0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005de0e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x1005e12a
lea eax, [esp + 0x1c]
push eax
mov esi, edi
mov ecx, ebx
call fcn.1005e150
mov dword [esp + 0x28], eax
test eax, eax
jl 0x1005e0b6
cmp eax, 1
je 0x1005e0b6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0x200
push ecx
push edx
call fcn.100ab490
or eax, edx
je 0x1005deab
lea esi, [esp + 0x14]
call fcn.1000fee0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005de8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xe0035003
jmp 0x1005e12a
cmp dword [ebx + 0x14], 0
jne 0x1005dee8
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x60]
call fcn.10002180
lea eax, [esp + 0x60]
push eax
lea ecx, [ebx + 0x28c]
push ecx
mov byte [esp + 0x298], 3
call fcn.100192f0
lea esi, [esp + 0x60]
mov byte [esp + 0x290], 2
call fcn.100021c0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edi
push ecx
lea edi, [ebx + 0x6c]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call fcn.1005fe10
mov edx, dword [esp + 0x2c]
push edx
lea esi, [ebx + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
push 0x1ff
push ecx
lea edx, [esp + 0x85]
mov word [eax], cx
push edx
mov byte [esp + 0x88], cl
call fcn.10064e10
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.1005e950
mov edi, eax
test edi, edi
jl 0x1005dded
cmp edi, 1
je 0x1005dded
cmp dword [esp + 0x88], 0x100
je 0x1005dfb9
lea esi, [esp + 0x14]
call fcn.1000fee0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005df98
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xe0035001
jmp 0x1005e12a
lea eax, [esp + 0xb8]
call fcn.1005da10
cmp eax, 2
jne 0x1005dfcf
mov dword [ebx + 0x48], eax
jmp 0x1005e003
cmp eax, 3
jne 0x1005e077
mov dword [ebx + 0x48], eax
lea eax, [esp + 0x8c]
call fcn.10003d90
push edx
push eax
mov esi, ebx
call fcn.1005e300
mov edi, eax
test edi, edi
jl 0x1005dded
cmp edi, 1
je 0x1005dded
lea eax, [esp + 0x34]
push eax
call fcn.1001ad80
lea ecx, [esp + 0x34]
mov edx, ebx
mov byte [esp + 0x290], 4
call fcn.10003530
mov edi, eax
test edi, edi
jl 0x1005e069
cmp edi, 1
je 0x1005e069
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
lea eax, [esp + 0x40]
call fcn.10003240
mov edi, eax
test edi, edi
jl 0x1005e069
cmp edi, 1
je 0x1005e069
mov esi, ebx
call fcn.1005e790
mov edi, eax
test edi, edi
jne 0x1005e05b
mov dword [ebx + 0x18], 1
lea esi, [esp + 0x34]
call fcn.10005a90
jmp 0x1005dd92
lea esi, [esp + 0x34]
call fcn.10005a90
jmp 0x1005dded
lea esi, [esp + 0x14]
call fcn.1000fee0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005e098
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xe0035002
jmp 0x1005e12a
lea esi, [esp + 0x14]
call fcn.1000fee0
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005e0d7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x290], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
jmp 0x1005e12a
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005e10c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x28]
jmp 0x1005e12a
mov eax, 0x80070057
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret 0xc