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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7dec
call fcn.100352e0
mov eax, dword [0x101a8cb0]
xor eax, ebp
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10009b30
add esp, 4
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
test ecx, ecx
je 0x10094598
mov ax, word [ebp - 4]
jmp 0x10094ac7
mov edx, dword [ebp + 0x18]
cmp dword [edx], 1
jne 0x100945a9
mov dword [ebp - 0xc], 0x101ad5a8
jmp 0x100945b0
mov dword [ebp - 0xc], 0x101ad5bc
xor eax, eax
mov word [ebp - 0x3c], ax
mov ecx, 0x28
mov word [ebp - 0x30], cx
mov edx, 0x100
mov word [ebp - 0x2e], dx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1007c3c0
add esp, 0x20
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
test eax, eax
jne 0x10094624
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 8]
mov ax, word [edx]
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0x34], 3
jne 0x10094624
mov cl, byte [ebp - 0x3c]
mov byte [ebp - 0x65], cl
mov dl, byte [ebp - 0x3b]
mov byte [ebp - 0x3c], dl
mov al, byte [ebp - 0x65]
mov byte [ebp - 0x3b], al
mov ecx, 0x7fe0
mov word [ebp - 0x30], cx
mov edx, 0x10
mov word [ebp - 0x2e], dx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1007c3c0
add esp, 0x20
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
test eax, eax
je 0x10094692
push 0x2484
push 0x101ad5d0
movzx ecx, word [ebp - 4]
push ecx
push 0x40003
call fcn.10002e30
add esp, 0x10
mov ax, word [ebp - 4]
jmp 0x10094ac7
xor edx, edx
cmp dword [ebp - 0x34], 3
sete dl
mov dword [ebp - 0x60], edx
movzx eax, word [ebp - 0x3c]
cmp eax, 8
jg 0x100946ae
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x100946d0
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0
push 0x5c
mov eax, dword [ebp - 0x64]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x54], eax
push 0x5c
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov edx, 0x7fe0
mov eax, dword [ebp - 0x54]
mov word [eax], dx
mov ecx, 0x10
mov edx, dword [ebp - 0x54]
mov word [edx + 2], cx
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x64]
push ecx
push 0x101ad5dc
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0x10
push 2
lea eax, [ebp - 0x50]
push eax
call fcn.100795a0
add esp, 0x1c
push 0x44
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x18]
add edx, 0x10
push edx
call fcn.10003d40
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
je 0x100947ec
push 0x54
push 0
lea edx, [ebp - 0xc0]
push edx
call fcn.1002a420
add esp, 0xc
push 0x1c
push 0
lea eax, [ebp - 0xdc]
push eax
call fcn.1002a420
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10093cd0
add esp, 0x14
mov word [ebp - 4], ax
movzx edx, word [ebp - 4]
test edx, edx
je 0x100947ec
push 0x24b5
push 0x101ad5e0
movzx eax, word [ebp - 4]
push eax
push 0x40003
call fcn.10002e30
add esp, 0x10
mov ax, word [ebp - 4]
jmp 0x10094ac7
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10080290
add esp, 0x1c
mov word [ebp - 4], ax
movzx edx, word [ebp - 4]
test edx, edx
je 0x1009484d
mov eax, dword [ebp - 0x64]
push eax
call fcn.10009d90
add esp, 4
push 0x24c0
push 0x101ad5ec
movzx ecx, word [ebp - 4]
push ecx
push 0x40003
call fcn.10002e30
add esp, 0x10
mov ax, word [ebp - 4]
jmp 0x10094ac7
push 0x101ad5f8
mov edx, dword [ebp + 0x10]
push edx
call fcn.10003c90
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10094899
mov eax, dword [ebp - 0x64]
push eax
call fcn.10009d90
add esp, 4
push 0x24c8
push 0x101ad5fc
push 0xc9
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0xc9
jmp 0x10094ac7
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0x18]
cmp dword [edx], 3
jne 0x100948b7
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.10079040
add esp, 8
push 2
push 0xfffffffffffffffc
mov edx, dword [ebp - 0x38]
push edx
call fcn.10033a60
add esp, 0xc
mov eax, dword [ebp - 0x38]
push eax
push 1
push 4
lea ecx, [ebp - 0x58]
push ecx
call fcn.10032210
add esp, 0x10
push 0x104
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.10003d40
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [ebp - 0x60], 0
je 0x10094a6f
push 0x101ad608
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
push edx
call fcn.10003c90
add esp, 8
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
jne 0x1009494d
mov eax, dword [ebp - 0x38]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10009d90
add esp, 4
mov eax, 0xc9
jmp 0x10094ac7
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xe0]
push eax
call fcn.10033a60
add esp, 0xc
mov ecx, dword [ebp - 0xe0]
push ecx
push 0x7d00
push 1
lea edx, [ebp - 0x7de8]
push edx
call fcn.10032e00
add esp, 0x10
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jbe 0x10094a54
mov dword [ebp - 0xe4], 0
jmp 0x100949ad
mov eax, dword [ebp - 0xe4]
add eax, 2
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
cmp ecx, dword [ebp - 0xe8]
jae 0x100949fd
mov edx, dword [ebp - 0xe4]
mov al, byte [ebp + edx - 0x7de8]
mov byte [ebp - 0x7de9], al
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xe4]
mov al, byte [ebp + edx - 0x7de7]
mov byte [ebp + ecx - 0x7de8], al
mov ecx, dword [ebp - 0xe4]
mov dl, byte [ebp - 0x7de9]
mov byte [ebp + ecx - 0x7de7], dl
jmp 0x1009499e
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
push 1
lea edx, [ebp - 0x7de8]
push edx
call fcn.10032210
add esp, 0x10
cmp eax, dword [ebp - 0xe8]
je 0x10094a4f
mov eax, dword [ebp - 0xe0]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1002ac50
add esp, 4
mov edx, dword [ebp - 0x64]
push edx
call fcn.10009d90
add esp, 4
mov eax, 0xcb
jmp 0x10094ac7
jmp 0x10094962
mov eax, dword [ebp - 0xe0]
push eax
call fcn.1002ac50
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], 0
jmp 0x10094aa3
cmp dword [ebp - 0x10], 0
jne 0x10094a8b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x10094aa3
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x38]
push edx
call fcn.1002ac50
add esp, 4
mov eax, dword [ebp - 0x64]
push eax
call fcn.10009d90
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1002aab0
mov esp, ebp
pop ebp
ret