Function at 0x100220f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov word [ebp - 0x33], ax
mov byte [ebp - 0x31], al
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xb8], 0
xor edx, edx
mov dword [ebp - 0xb7], edx
mov dword [ebp - 0xb3], edx
mov byte [ebp - 0xaf], dl
push 0x76
push 0
lea eax, [ebp - 0xae]
push eax
call fcn.10108c60
add esp, 0xc
mov byte [ebp - 0xd8], 0
xor ecx, ecx
mov dword [ebp - 0xd7], ecx
mov dword [ebp - 0xd3], ecx
mov dword [ebp - 0xcf], ecx
mov dword [ebp - 0xcb], ecx
mov dword [ebp - 0xc7], ecx
mov dword [ebp - 0xc3], ecx
mov dword [ebp - 0xbf], ecx
mov word [ebp - 0xbb], cx
mov byte [ebp - 0xb9], cl
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x100221bb
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [ebp + 0x10], 0
je 0x100221ca
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 8], 0xffffffff
je 0x100221e5
cmp dword [ebp + 0xc], 0
je 0x100221e5
cmp dword [0x10199500], 0
je 0x100221e5
cmp dword [ebp + 0x10], 0
jne 0x100221ef
jmp 0x10022429
cmp dword [0x10199500], 0
jne 0x10022202
jmp 0x10022429
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10022226
jmp 0x10022429
mov edx, dword [0x1019992c]
cmp edx, dword [ebp - 4]
jae 0x10022249
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x10022429
cmp dword [ebp - 4], 0
jne 0x10022311
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
lea edx, [ebp - 0x38]
push edx
call fcn.10022440
add esp, 4
test eax, eax
jne 0x10022276
jmp 0x10022429
push 0x20
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.10022870
add esp, 0x10
test eax, eax
jne 0x100222a0
jmp 0x10022429
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10022690
add esp, 8
test eax, eax
jne 0x100222c1
jmp 0x10022429
mov dx, word [ebp - 0x1f]
mov word [0x10199940], dx
movsx eax, byte [ebp - 0x20]
mov dword [0x10199944], eax
push 0x20
lea ecx, [ebp - 0xd8]
push ecx
push 0x10199970
call fcn.10109740
add esp, 0xc
push 1
push 0
push 0x20
push 0x10199970
call fcn.10022a10
add esp, 0x10
test eax, eax
jne 0x1002230c
jmp 0x10022429
jmp 0x10022422
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10022700
add esp, 8
test eax, eax
jne 0x10022332
jmp 0x10022429
movzx ecx, word [ebp - 0x9b]
movzx edx, word [0x10199940]
cmp ecx, edx
jne 0x10022365
movsx eax, byte [ebp - 0x9c]
cmp eax, dword [0x10199944]
jne 0x10022365
mov ecx, dword [ebp - 0x99]
cmp ecx, dword [0x10199924]
je 0x10022422
lea edx, [ebp - 0x38]
push edx
call fcn.10022440
add esp, 4
test eax, eax
jne 0x1002237f
jmp 0x10022429
mov ax, word [ebp - 0x1f]
mov word [0x10199940], ax
movsx ecx, byte [ebp - 0x20]
mov dword [0x10199944], ecx
mov edx, dword [ebp - 0x99]
mov dword [0x10199924], edx
push 0x20
lea eax, [ebp - 0xd8]
push eax
push 0x10199970
call fcn.10109740
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x95]
push ecx
push 0x10199970
call fcn.10109740
add esp, 0xc
push 0
lea edx, [ebp - 0x1d]
push edx
push 0x20
push 0x10199970
call fcn.10022a10
add esp, 0x10
test eax, eax
jne 0x100223e8
jmp 0x10022429
push 1
push 0
push 0x20
push 0x10199970
call fcn.10022a10
add esp, 0x10
test eax, eax
jne 0x10022403
jmp 0x10022429
movzx eax, word [ebp - 0x9b]
movzx ecx, word [0x10199940]
cmp eax, ecx
je 0x10022422
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
jmp 0x10022429
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret