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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14060
call fcn.004ed7c0
mov eax, dword [0x55930c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x1405c], ecx
push 0x538190
mov eax, dword [ebp - 0x1405c]
add eax, 0xc
push eax
call fcn.004f1a90
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4df135
xor al, al
jmp 0x4df85f
push 0x538194
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f1a90
add esp, 8
mov dword [ebp - 0x14050], eax
cmp dword [ebp - 0x14050], 0
jne 0x4df168
mov edx, dword [ebp - 4]
push edx
call fcn.004eec8f
add esp, 4
xor al, al
jmp 0x4df85f
cmp dword [ebp + 0xc], 0
je 0x4df179
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14060], eax
jmp 0x4df18b
mov ecx, dword [ebp - 0x1405c]
add ecx, 0x138
mov dword [ebp - 0x14060], ecx
push 0
mov edx, dword [ebp - 0x1405c]
mov esi, dword [edx + 0x2c0]
mov eax, dword [ebp - 0x14060]
push eax
call fcn.004ee2e0
add esp, 4
lea ecx, [esi + eax + 0x1e]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ef27a
add esp, 0xc
mov dword [ebp - 0xa00c], 0
push 0x38
push 0
lea eax, [ebp - 0x14048]
push eax
call fcn.004ed5e0
add esp, 0xc
mov dword [ebp - 0x14024], 0x4df0d0
mov dword [ebp - 0x14028], 0x4df0b0
push 0x38
push 0x538198
push 0
push 8
push 0xfffffffffffffff1
push 8
push 0xffffffffffffffff
lea ecx, [ebp - 0x14048]
push ecx
call fcn.0040d9d0
add esp, 0x20
mov edx, dword [ebp - 0x14050]
push edx
call fcn.004f305c
add esp, 4
test eax, eax
jne 0x4df32b
mov eax, dword [ebp - 0x14050]
push eax
push 0xa000
push 1
lea ecx, [ebp - 0xa008]
push ecx
call fcn.004eefc8
add esp, 0x10
mov dword [ebp - 0xa010], eax
cmp dword [ebp - 0xa010], 0
jne 0x4df252
jmp 0x4df32b
mov edx, dword [ebp - 0xa010]
push edx
lea eax, [ebp - 0xa008]
push eax
mov ecx, dword [ebp - 0xa00c]
push ecx
call fcn.0040f7d0
add esp, 0xc
mov dword [ebp - 0xa00c], eax
lea edx, [ebp - 0xa008]
mov dword [ebp - 0x14048], edx
mov eax, dword [ebp - 0xa010]
mov dword [ebp - 0x14044], eax
lea ecx, [ebp - 0x14010]
mov dword [ebp - 0x1403c], ecx
mov dword [ebp - 0x14038], 0xa000
cmp dword [ebp - 0x14044], 0
jbe 0x4df2f8
cmp dword [ebp - 0x14038], 0
jne 0x4df2e5
mov edx, dword [ebp - 4]
push edx
push 1
push 0xa000
lea eax, [ebp - 0x14010]
push eax
call fcn.004f1372
add esp, 0x10
mov dword [ebp - 0x14038], 0xa000
lea ecx, [ebp - 0x14010]
mov dword [ebp - 0x1403c], ecx
push 0
lea edx, [ebp - 0x14048]
push edx
call fcn.0040df90
add esp, 8
jmp 0x4df2a3
mov eax, 0xa000
sub eax, dword [ebp - 0x14038]
je 0x4df326
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, 0xa000
sub edx, dword [ebp - 0x14038]
push edx
lea eax, [ebp - 0x14010]
push eax
call fcn.004f1372
add esp, 0x10
jmp 0x4df20a
mov ecx, dword [ebp - 0x14050]
push ecx
call fcn.004eec8f
add esp, 4
lea edx, [ebp - 0x14010]
mov dword [ebp - 0x1403c], edx
mov dword [ebp - 0x14038], 0xa000
mov dword [ebp - 0x1404c], 0
cmp dword [ebp - 0x1404c], 0
jne 0x4df3b5
cmp dword [ebp - 0x14038], 0
jne 0x4df39c
mov eax, dword [ebp - 4]
push eax
push 1
push 0xa000
lea ecx, [ebp - 0x14010]
push ecx
call fcn.004f1372
add esp, 0x10
mov dword [ebp - 0x14038], 0xa000
lea edx, [ebp - 0x14010]
mov dword [ebp - 0x1403c], edx
push 4
lea eax, [ebp - 0x14048]
push eax
call fcn.0040df90
add esp, 8
mov dword [ebp - 0x1404c], eax
jmp 0x4df35a
mov ecx, 0xa000
sub ecx, dword [ebp - 0x14038]
je 0x4df3e3
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, 0xa000
sub eax, dword [ebp - 0x14038]
push eax
lea ecx, [ebp - 0x14010]
push ecx
call fcn.004f1372
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.004ef182
add esp, 4
mov dword [ebp - 0x14054], eax
push 0x1e
push 0
mov eax, dword [ebp - 0x1405c]
add eax, 0x264
push eax
call fcn.004ed5e0
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x1405c]
mov word [edx + 0x26a], cx
mov eax, dword [ebp - 0x1405c]
mov ecx, dword [ebp - 0xa00c]
mov dword [eax + 0x272], ecx
mov edx, dword [ebp - 0x1405c]
mov dword [edx + 0x264], 0x4034b50
mov eax, dword [ebp - 0x1405c]
mov ecx, dword [ebp - 0x14040]
mov dword [eax + 0x27a], ecx
mov edx, dword [ebp - 0x1405c]
mov eax, dword [ebp - 0x14034]
mov dword [edx + 0x276], eax
cmp dword [ebp + 0xc], 0
je 0x4df483
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004ee2e0
add esp, 4
mov edx, dword [ebp - 0x1405c]
mov word [edx + 0x27e], ax
jmp 0x4df4a4
mov eax, dword [ebp - 0x1405c]
add eax, 0x138
push eax
call fcn.004ee2e0
add esp, 4
mov ecx, dword [ebp - 0x1405c]
mov word [ecx + 0x27e], ax
mov edx, 8
mov eax, dword [ebp - 0x1405c]
mov word [eax + 0x26c], dx
mov ecx, 0x14
mov edx, dword [ebp - 0x1405c]
mov word [edx + 0x268], cx
push 0
mov eax, dword [ebp - 0x1405c]
mov ecx, dword [eax + 0x2c0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ef27a
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 0x1e
mov ecx, dword [ebp - 0x1405c]
add ecx, 0x264
push ecx
call fcn.004f1372
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x4df527
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ee2e0
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004f1372
add esp, 0x10
jmp 0x4df557
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0x1405c]
add eax, 0x138
push eax
call fcn.004ee2e0
add esp, 4
push eax
mov ecx, dword [ebp - 0x1405c]
add ecx, 0x138
push ecx
call fcn.004f1372
add esp, 0x10
push 0
mov edx, dword [ebp - 0x14054]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004ef27a
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x1405c]
mov eax, dword [edx + 0x2bc]
push eax
mov ecx, dword [ebp - 0x1405c]
mov edx, dword [ecx + 0x2d4]
push edx
call fcn.004f1372
add esp, 0x10
mov eax, dword [ebp - 0x1405c]
mov ecx, dword [eax + 0x2d4]
mov dword [ebp - 0x14058], ecx
mov edx, dword [ebp - 0x14058]
push edx
call fcn.004e9596
add esp, 4
mov eax, dword [ebp - 0x1405c]
mov dword [eax + 0x2d4], 0
push 0x2e
push 0
mov ecx, dword [ebp - 0x1405c]
add ecx, 0x282
push ecx
call fcn.004ed5e0
add esp, 0xc
mov edx, dword [ebp - 0x1405c]
mov dword [edx + 0x282], 0x2014b50
mov eax, 0x14
mov ecx, dword [ebp - 0x1405c]
mov word [ecx + 0x286], ax
mov edx, 0x14
mov eax, dword [ebp - 0x1405c]
mov word [eax + 0x288], dx
mov ecx, dword [ebp - 0x1405c]
mov edx, dword [ebp - 0x1405c]
mov ax, word [edx + 0x26c]
mov word [ecx + 0x28c], ax
mov ecx, dword [ebp - 0x1405c]
mov edx, dword [ebp - 0x1405c]
mov eax, dword [edx + 0x272]
mov dword [ecx + 0x292], eax
mov ecx, dword [ebp - 0x1405c]
mov edx, dword [ebp - 0x1405c]
mov eax, dword [edx + 0x276]
mov dword [ecx + 0x296], eax
mov ecx, dword [ebp - 0x1405c]
mov edx, dword [ebp - 0x1405c]
mov eax, dword [edx + 0x27a]
mov dword [ecx + 0x29a], eax
cmp dword [ebp + 0xc], 0
je 0x4df695
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004ee2e0
add esp, 4
mov edx, dword [ebp - 0x1405c]
mov word [edx + 0x29e], ax
jmp 0x4df6b6
mov eax, dword [ebp - 0x1405c]
add eax, 0x138
push eax
call fcn.004ee2e0
add esp, 4
mov ecx, dword [ebp - 0x1405c]
mov word [ecx + 0x29e], ax
mov edx, dword [ebp - 0x1405c]
mov eax, dword [ebp - 0x1405c]
mov ecx, dword [eax + 0x2c0]
mov dword [edx + 0x2ac], ecx
mov edx, dword [ebp - 4]
push edx
push 1
push 0x2e
mov eax, dword [ebp - 0x1405c]
add eax, 0x282
push eax
call fcn.004f1372
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x4df711
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ee2e0
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004f1372
add esp, 0x10
jmp 0x4df741
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x1405c]
add edx, 0x138
push edx
call fcn.004ee2e0
add esp, 4
push eax
mov eax, dword [ebp - 0x1405c]
add eax, 0x138
push eax
call fcn.004f1372
add esp, 0x10
mov ecx, dword [ebp - 0x1405c]
mov edx, dword [ebp - 0x14054]
mov dword [ecx + 0x2c0], edx
mov eax, dword [ebp - 0x1405c]
mov cx, word [eax + 0x2b8]
add cx, 1
mov edx, dword [ebp - 0x1405c]
mov word [edx + 0x2b8], cx
mov eax, dword [ebp - 0x1405c]
mov cx, word [eax + 0x2ba]
add cx, 1
mov edx, dword [ebp - 0x1405c]
mov word [edx + 0x2ba], cx
mov eax, dword [ebp - 0x1405c]
mov ecx, dword [eax + 0x2bc]
add ecx, 0x2e
mov edx, dword [ebp - 0x1405c]
mov dword [edx + 0x2bc], ecx
cmp dword [ebp + 0xc], 0
je 0x4df7d6
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ee2e0
add esp, 4
mov ecx, dword [ebp - 0x1405c]
add eax, dword [ecx + 0x2bc]
mov edx, dword [ebp - 0x1405c]
mov dword [edx + 0x2bc], eax
jmp 0x4df802
mov eax, dword [ebp - 0x1405c]
add eax, 0x138
push eax
call fcn.004ee2e0
add esp, 4
mov ecx, dword [ebp - 0x1405c]
add eax, dword [ecx + 0x2bc]
mov edx, dword [ebp - 0x1405c]
mov dword [edx + 0x2bc], eax
xor eax, eax
mov ecx, dword [ebp - 0x1405c]
mov word [ecx + 0x2c4], ax
mov edx, dword [ebp - 4]
push edx
push 1
push 0x16
mov eax, dword [ebp - 0x1405c]
add eax, 0x2b0
push eax
call fcn.004f1372
add esp, 0x10
lea ecx, [ebp - 0x14048]
push ecx
call fcn.0040e740
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.004eec8f
add esp, 4
mov eax, dword [ebp - 0x1405c]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x1405c]
call fcn.004de910
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e9752
mov esp, ebp
pop ebp
ret 8