Function at 0x1002d120
Capabilities:
Get file size

Disassembly:
sub esp, 0x30
mov eax, dword [0x100d1040]
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 closesocket
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 0x1002d184
call fcn.10002c20
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005710f
add esp, 0x30
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x1002d1b7
call fcn.10002c20
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.1005710f
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.1002d470
mov edi, eax
add esp, 8
test edi, edi
jl 0x1002d19b
cmp edi, 1
je 0x1002d19b
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.1002d070
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x1002d24c
cmp byte [esp + 0x1c], 0x4d
jne 0x1002d26a
cmp byte [esp + 0x1d], 0x4f
jne 0x1002d26a
cmp byte [esp + 0x1e], 0x55
jne 0x1002d26a
mov dword [ebp], 5
lea esi, [esp + 0x10]
call fcn.1000fcc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005710f
add esp, 0x30
ret
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x100c509c]
jne 0x1002d2a9
cmp byte [esp + 0x20], 0x27
jne 0x1002d2a9
cmp byte [esp + 0x21], 0x1c
jne 0x1002d2a9
lea esi, [esp + 0x10]
mov dword [ebp], 4
call fcn.1000fcc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005710f
add esp, 0x30
ret
mov eax, 0x10
xor ecx, ecx
mov edx, dword [esp + ecx + 0x1c]
cmp edx, dword [ecx + 0x100c50a4]
jne 0x1002d2e3
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1002d2b0
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.1005710f
add esp, 0x30
ret
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x100c5098]
jne 0x1002d314
lea esi, [esp + 0x10]
mov dword [ebp], 2
call fcn.1000fcc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005710f
add esp, 0x30
ret
cmp dword [esp + 0x50], 0
je 0x1002d349
mov eax, dword [esp + 0x14]
push esi
push ebp
call fcn.1002d370
add esp, 8
lea esi, [esp + 0x10]
mov edi, eax
call fcn.1000fcc0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1005710f
add esp, 0x30
ret
lea esi, [esp + 0x10]
mov dword [ebp], 0
call fcn.1000fcc0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1005710f
add esp, 0x30
ret