Function at 0x10002520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b705
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1002400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.10001ff0
lea ecx, [ebp - 0x14]
call fcn.100031d0
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x18]
call fcn.10001ff0
lea eax, [ebp - 0x18]
push eax
call fcn.10002370
add esp, 4
mov byte [ebp - 4], 1
xor ecx, ecx
mov byte [ebp - 0x31], cl
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x31]
call fcn.10002860
mov ecx, eax
call fcn.10002f50
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10003c20
add esp, 0xc
push 0x10022180
lea ecx, [ebp - 0x14]
call fcn.100031f0
push eax
call fcn.1000c3b7
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x100025fe
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x38]
jmp 0x10002843
push 2
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000bba5
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10008f6c
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1000265d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000b881
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x3c]
jmp 0x10002843
push 0xc
lea ecx, [ebp - 0x24]
call fcn.10001ff0
lea ecx, [ebp - 0x32]
call fcn.10001fb0
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x24]
call fcn.10003000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.1000c6fd
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100026d3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000b881
add esp, 4
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x24]
call fcn.10002fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x40]
jmp 0x10002843
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000bba5
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 1
lea ecx, [ebp - 0x24]
call fcn.10002fc0
push eax
call fcn.1000c5c2
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000b881
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edx]
je 0x10002757
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1000c3ce
add esp, 4
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x24]
call fcn.10002fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x48]
jmp 0x10002843
mov edx, dword [ebp + 8]
imul eax, dword [edx], 5
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.1000b8b1
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100027ab
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x24]
call fcn.10002fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x4c]
jmp 0x10002843
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x24]
call fcn.10002fc0
push eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.zlib1.dll_uncompress]
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1000280f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1000c3ce
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x24]
call fcn.10002fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x54]
jmp 0x10002843
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x24]
call fcn.10002fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10003130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10003130
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100057e9
mov esp, ebp
pop ebp
ret