Function at 0x10013730
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1c15
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], eax
cmp edi, esi
je 0x10013a84
cmp word [edi], si
je 0x10013a84
push ebx
call fcn.10018760
push 0x324
lea ecx, [ebx + 0x2c]
push esi
push ecx
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
call fcn.10059a00
mov dword [ebx + 0x350], esi
add esp, 0xc
mov esi, edi
call fcn.1000f950
test eax, eax
je 0x1001388a
push 0x100d61b4
push 0x110
call fcn.10057d0e
add esp, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x240], 0
test eax, eax
je 0x100137ef
push eax
call fcn.100132b0
jmp 0x100137f1
xor eax, eax
mov dword [esp + 0x240], 0xffffffff
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x1001380d
mov eax, 0x8007000e
jmp 0x10013a89
push edi
mov esi, eax
call fcn.1000f9a0
test eax, eax
jl 0x10013a89
cmp eax, 1
je 0x10013a89
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x108]
mov dword [ebx + 0x358], edx
mov eax, dword [eax + 0x10c]
push 0x2e
push edi
mov dword [ebx + 0x35c], eax
call fcn.100587d3
add esp, 8
test eax, eax
je 0x1001387c
push str..nrg
push eax
call fcn.10058910
add esp, 8
test eax, eax
jne 0x1001387c
mov ecx, ebx
call fcn.10015ce0
test eax, eax
jge 0x10013a89
cmp eax, 0xe003200b
jne 0x10013a89
push 0
mov ecx, ebx
call fcn.10016f50
jmp 0x10013a89
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call fcn.10059a00
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.100169b0
xor esi, esi
cmp eax, esi
jl 0x10013a89
cmp eax, 1
je 0x10013a89
mov eax, dword [ebx + 0x24]
cmp eax, 0xa
jne 0x100138de
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.10013ab0
jmp 0x10013a89
cmp eax, 5
jne 0x10013917
mov eax, 0x930
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x360], eax
mov dword [ebx + 0x20], esi
mov eax, ebx
cmp dword [ebx + 0x354], esi
je 0x10013908
call fcn.10017330
jmp 0x10013a89
lea edx, [esp + 0x24]
push edx
call fcn.10017240
jmp 0x10013a89
cmp eax, 6
jne 0x10013950
mov eax, 0x930
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x360], eax
cmp dword [ebx + 0x354], esi
je 0x10013940
push ebx
call fcn.10017910
jmp 0x10013a89
lea ecx, [esp + 0x24]
mov edi, ebx
call fcn.100176f0
jmp 0x10013a89
cmp eax, 7
jne 0x10013988
mov eax, 0x930
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x360], eax
mov ecx, ebx
cmp dword [ebx + 0x354], esi
je 0x1001397a
call fcn.10017ec0
jmp 0x10013a89
lea edx, [esp + 0x24]
call fcn.10017d20
jmp 0x10013a89
cmp dword [ebx + 0x354], esi
je 0x100139c0
cmp eax, 8
jne 0x100139b6
mov eax, 0x930
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x360], eax
mov eax, ebx
mov dword [ebx + 0x20], 0x2c
call fcn.10018430
jmp 0x10013a89
mov eax, 0xe0032004
jmp 0x10013a89
push esi
push esi
push 3
push esi
push 1
push closesocket
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
jne 0x100139e9
call fcn.10002c20
jmp 0x10013a89
mov ecx, dword [ebx + 0x24]
cmp ecx, 2
jne 0x10013a09
cmp dword [ebx + 0x28], esi
je 0x100139fd
xor eax, eax
jmp 0x10013a89
mov ecx, ebx
call fcn.10015320
jmp 0x10013a89
cmp ecx, 1
jne 0x10013a20
mov ecx, ebx
call fcn.10015ce0
cmp eax, esi
jl 0x10013a89
cmp eax, 1
je 0x10013a89
jmp 0x100139f1
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100139df
cmp dword [ebx + 0x350], esi
je 0x10013a63
cmp dword [ebx + 0x24], 8
jne 0x10013a52
add dword [esp + 0x14], 0xffffffd4
mov dword [ebx + 0x360], 0x930
adc dword [esp + 0x18], 0xffffffff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
mov esi, ebx
call fcn.10016560
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x358], ecx
push eax
mov ecx, ebx
mov dword [ebx + 0x35c], edx
call fcn.10016f50
jmp 0x10013a89
mov eax, 0x80070057
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 8