Function at 0x10022dd0
Capabilities:
Get file size

Disassembly:
sub esp, 0x30
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
mov dword [esp + 0x30], eax
mov edi, edx
mov dword [esp + 0x34], ecx
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10022e34
call fcn.10002d30
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10022e67
call fcn.10002d30
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
xor eax, eax
lea edx, [esp + 0x2c]
push ebx
push edx
lea edi, [esp + 0x24]
mov byte [esp + 0x24], 0
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
mov byte [esp + 0x34], al
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
call fcn.10023120
mov edi, eax
add esp, 8
test edi, edi
jl 0x10022e4b
cmp edi, 1
je 0x10022e4b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.10022d20
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x10022efc
cmp byte [esp + 0x1c], 0x4d
jne 0x10022f1a
cmp byte [esp + 0x1d], 0x4f
jne 0x10022f1a
cmp byte [esp + 0x1e], 0x55
jne 0x10022f1a
mov dword [ebp], 5
lea esi, [esp + 0x10]
call fcn.1000fee0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x100d35b8]
jne 0x10022f59
cmp byte [esp + 0x20], 0x27
jne 0x10022f59
cmp byte [esp + 0x21], 0x1c
jne 0x10022f59
lea esi, [esp + 0x10]
mov dword [ebp], 4
call fcn.1000fee0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
mov eax, 0x10
xor ecx, ecx
mov edx, dword [esp + ecx + 0x1c]
cmp edx, dword [ecx + 0x100d35c0]
jne 0x10022f93
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x10022f60
pop edi
pop esi
mov dword [ebp], 6
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x100d35b4]
jne 0x10022fc4
lea esi, [esp + 0x10]
mov dword [ebp], 2
call fcn.1000fee0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
cmp dword [esp + 0x50], 0
je 0x10022ff9
mov eax, dword [esp + 0x14]
push esi
push ebp
call fcn.10023020
add esp, 8
lea esi, [esp + 0x10]
mov edi, eax
call fcn.1000fee0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10062448
add esp, 0x30
ret
lea esi, [esp + 0x10]
mov dword [ebp], 0
call fcn.1000fee0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10062448
add esp, 0x30
ret