Function at 0x1000bc9a
Capabilities:
Get file size

Disassembly:
push 0x314
mov eax, 0x100f0590
call fcn.100cca34
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2d8]
call fcn.1000b9a6
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
push ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
push 0x1c
pop ecx
push 0x3c
pop edx
cmove ecx, edx
add ecx, eax
lea eax, [esi + 0x25c]
push ecx
push 3
push connect
push eax
call edi
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d8]
call fcn.1000bb19
cmp esi, 0xffffffff
je 0x1000c196
mov dword [ebp - 0x28c], ebx
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x288], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
call fcn.10003351
mov dword [ebp - 4], 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
push ecx
push eax
call fcn.10003294
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x27c]
sub eax, dword [ebp - 0x278]
push 0
push ecx
push eax
push dword [ebp - 0x278]
push esi
call fcn.1000cd05
add esp, 0x14
test eax, eax
je 0x1000c174
mov eax, dword [ebp - 0x274]
sub eax, dword [ebp - 0x278]
cmp dword [ebp - 0x27c], eax
jne 0x1000c174
mov eax, dword [0x10201ab4]
mov esi, dword [0x101ef2d0]
mov ecx, dword [eax + 0xa8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x74]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
call dword [esi + 0xc]
mov dword [ebp - 0x26c], 0x538a
mov eax, dword [ebp - 0x26c]
xor eax, 0x3a
mov word [ebp - 0x268], ax
mov eax, dword [ebp - 0x26c]
inc eax
xor eax, 0x7b
mov word [ebp - 0x266], ax
mov eax, dword [ebp - 0x26c]
add eax, 2
push 0x35
pop esi
xor eax, esi
mov word [ebp - 0x264], ax
mov eax, dword [ebp - 0x26c]
add eax, 3
xor eax, esi
mov word [ebp - 0x262], ax
mov eax, dword [ebp - 0x26c]
add eax, 4
xor eax, 0x30
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x26c]
add eax, 5
xor eax, esi
mov word [ebp - 0x25e], ax
mov eax, dword [ebp - 0x26c]
add eax, 6
xor eax, 0x41
mov word [ebp - 0x25c], ax
mov eax, dword [ebp - 0x26c]
add eax, 7
xor eax, 0x33
mov word [ebp - 0x25a], ax
mov eax, dword [ebp - 0x26c]
add eax, 8
xor eax, esi
mov word [ebp - 0x258], ax
mov eax, dword [ebp - 0x26c]
add eax, 9
xor eax, 0x30
mov word [ebp - 0x256], ax
mov eax, dword [ebp - 0x26c]
add eax, 0xa
push 0x2d
pop edx
xor eax, edx
mov word [ebp - 0x254], ax
mov eax, dword [ebp - 0x26c]
add eax, 0xb
xor eax, 0x44
mov word [ebp - 0x252], ax
mov eax, dword [ebp - 0x26c]
add eax, 0xc
xor eax, 0x36
mov word [ebp - 0x250], ax
mov eax, dword [ebp - 0x26c]
add eax, 0xd
xor eax, 0x43
mov word [ebp - 0x24e], ax
mov eax, dword [ebp - 0x26c]
add eax, 0xe
xor eax, 0x30
mov word [ebp - 0x24c], ax
mov eax, dword [ebp - 0x26c]
add eax, 0xf
xor eax, edx
mov word [ebp - 0x24a], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x10
xor eax, 0x34
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x11
xor eax, 0x44
mov word [ebp - 0x246], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x12
xor eax, 0x45
mov word [ebp - 0x244], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x13
push 0x46
pop ecx
xor eax, ecx
mov word [ebp - 0x242], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x14
xor eax, edx
mov word [ebp - 0x240], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x15
xor eax, 0x41
mov word [ebp - 0x23e], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x16
xor eax, 0x42
mov word [ebp - 0x23c], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x17
xor eax, ecx
mov word [ebp - 0x23a], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x18
xor eax, 0x43
mov word [ebp - 0x238], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x19
xor eax, edx
mov word [ebp - 0x236], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x1a
xor eax, 0x37
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x1b
xor eax, 0x31
mov word [ebp - 0x232], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x1c
xor eax, ecx
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x1d
xor eax, 0x45
mov word [ebp - 0x22e], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x1e
xor eax, ecx
mov word [ebp - 0x22c], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x1f
xor eax, 0x31
mov word [ebp - 0x22a], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x20
xor eax, 0x32
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x21
xor eax, 0x44
mov word [ebp - 0x226], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x22
xor eax, 0x38
mov word [ebp - 0x224], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x23
xor eax, esi
mov word [ebp - 0x222], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x24
lea ecx, [ebp - 0x26c]
xor eax, esi
mov word [ebp - 0x220], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x25
xor eax, 0x41
mov word [ebp - 0x21e], ax
mov eax, dword [ebp - 0x26c]
add eax, 0x26
xor eax, 0x7d
mov word [ebp - 0x21c], ax
xor eax, eax
mov word [ebp - 0x21a], ax
mov ax, word [ebp - 0x268]
mov esi, dword [0x101ef2d0]
call fcn.10010e97
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
call dword [esi + 0xb4]
lea ecx, [ebp - 0x320]
call fcn.1000b9a6
mov byte [ebp - 4], 3
xor ecx, ecx
cmp dword [eax], ecx
je 0x1000c0f1
add eax, 0x1c
jmp 0x1000c0f4
add eax, 0x3c
push ecx
push ecx
push 2
push eax
push ecx
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x320]
call fcn.1000bb19
cmp esi, 0xffffffff
je 0x1000c174
push ebx
xor edi, edi
lea ecx, [ebp - 0x284]
push esi
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x280], edi
call fcn.10003351
mov byte [ebp - 4], 4
lea eax, [ebp - 0x290]
push edi
push eax
mov eax, dword [ebp - 0x274]
sub eax, dword [ebp - 0x278]
push eax
push dword [ebp - 0x278]
push esi
call fcn.1000cd38
add esp, 0x14
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x280]
test ecx, ecx
je 0x1000c174
call fcn.10002bb1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.10004afc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x1000c196
call fcn.10002bb1
call fcn.100cc9de
ret 4