Function at 0x100957d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x101a8cb0]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x100957f3
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x100957fd
mov eax, 1
jmp 0x10095d92
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x1009584a
push 0
push 0x274a
push 0x101ad704
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.10004aa0
add esp, 0x10
test eax, eax
jne 0x1009584a
call fcn.10097790
push eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.10087660
add esp, 8
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
je 0x1009584a
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], 0
push 0x13e
push 0
lea eax, [ebp - 0x168]
push eax
call fcn.1002a420
add esp, 0xc
push 0x13e
push 0
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.1002a420
add esp, 0xc
push 0x101ad710
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003c90
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1009589c
mov eax, 0xc9
jmp 0x10095d92
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10033a60
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.10034f20
add esp, 4
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x1009592f
push 0x101ad714
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.10003c90
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1009590a
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002ac50
add esp, 4
mov eax, 0xc9
jmp 0x10095d92
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.10033a60
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.10034f20
add esp, 4
mov edx, dword [ebp + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.10009b30
add esp, 4
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
test ecx, ecx
je 0x1009596b
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002ac50
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.1002ac50
add esp, 4
mov ax, word [ebp - 4]
jmp 0x10095d92
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100959bb
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.1002ac50
add esp, 4
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0x66
jmp 0x10095d92
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10033a60
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x100959ea
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10033a60
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
call fcn.10032e00
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10095a29
cmp dword [ebp - 8], 0
je 0x10095a5a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x14]
push edx
call fcn.10032e00
add esp, 0x10
cmp eax, dword [ebp - 0x10]
je 0x10095a5a
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.1002ac50
add esp, 4
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0xca
jmp 0x10095d92
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ac50
add esp, 4
cmp dword [ebp - 8], 0
je 0x10095a78
mov ecx, dword [ebp - 8]
push ecx
call fcn.1002ac50
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.1000b360
add esp, 0xc
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x2a8]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.10096a70
add esp, 0x2c
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
test ecx, ecx
je 0x10095af3
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 4]
jmp 0x10095d92
lea eax, [ebp - 0x2a8]
push eax
call fcn.1000b810
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
push 0
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.1000c5c0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2ac]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10095b4d
mov ecx, dword [ebp - 0x2ac]
push ecx
call fcn.10009d90
add esp, 4
mov eax, 0x66
jmp 0x10095d92
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.1000b880
add esp, 0xc
cmp eax, dword [ebp - 0x1c]
je 0x10095b82
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0xca
jmp 0x10095d92
push 0x101ad718
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.10003c90
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10095bb7
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0xc9
jmp 0x10095d92
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x10095c05
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.10032210
add esp, 0x10
cmp eax, dword [ebp - 0x1c]
je 0x10095c00
mov ecx, dword [ebp - 0x2ac]
push ecx
call fcn.10009d90
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002ac50
add esp, 4
mov eax, 0xcb
jmp 0x10095d92
jmp 0x10095d75
push 0x101ad71c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.10003c90
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10095c47
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ac50
add esp, 4
mov eax, 0xc9
jmp 0x10095d92
push 0
push 0
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.1000c5c0
add esp, 0xc
mov edx, 0x7fe0
mov word [ebp - 0x2cc], dx
mov eax, 0x10
mov word [ebp - 0x2ca], ax
mov ecx, dword [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x2d0]
push edx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x2d4]
push edx
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.1007bcf0
add esp, 0x24
mov word [ebp - 4], ax
movzx edx, word [ebp - 4]
test edx, edx
je 0x10095ceb
mov eax, dword [ebp - 0x2ac]
push eax
call fcn.10009d90
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1002ac50
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.1002ac50
add esp, 4
mov ax, word [ebp - 4]
jmp 0x10095d92
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2b0]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
call fcn.10032210
add esp, 0x10
cmp eax, dword [ebp - 0x2b0]
jne 0x10095d3b
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2b0]
push ecx
push 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x2b0]
push edx
call fcn.10032210
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x2b0]
cmp eax, ecx
je 0x10095d69
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.10009d90
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.1002ac50
add esp, 4
mov eax, 0xcb
jmp 0x10095d92
mov edx, dword [ebp - 8]
push edx
call fcn.1002ac50
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 0x2ac]
push ecx
call fcn.10009d90
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1002aab0
mov esp, ebp
pop ebp
ret