Function at 0x103f0e2
Capabilities:
Write file on windows

Disassembly:
push 0x5c
mov eax, 0x10ce01c
call fcn.010b534f
mov esi, ecx
cmp dword [esi + 0x18], 0xffffffff
je 0x103f192
mov ebx, dword [ebp + 8]
and dword [ebp - 0x10], 0
push 0xa
pop edi
push 1
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
mov dword [ebp - 0x18], edi
call fcn.01035834
cmp eax, 0xffffffff
jne 0x103f19a
cmp byte [esi + 0x1268], 0
je 0x103f171
mov eax, dword [esi + 0x5c]
lea ecx, [eax + 1]
mov dword [esi + 0x5c], ecx
cmp dword [esi + 0x54], 8
jb 0x103f138
mov ecx, dword [esi + 0x40]
jmp 0x103f13b
lea ecx, [esi + 0x40]
push ecx
push eax
push 0x100c960
push 0x400
mov edi, 0x10f3408
push edi
call fcn.010b7a02
mov eax, edi
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103f15a
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.0103ef7a
cmp dword [ebx + 0x18], 8
mov eax, dword [ebx + 0x14]
jb 0x103f17f
mov ebx, dword [ebx + 4]
jmp 0x103f182
add ebx, 4
push eax
push ebx
mov ecx, esi
call fcn.0103ef7a
mov byte [esi + 0x1268], 0
call fcn.010b543b
ret 4
push 1
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
mov dword [ebp - 0x18], edi
call fcn.01035834
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x103f192
mov dword [ebp - 0x18], edi
mov ebx, 0x10f2c08
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], eax
je 0x103f192
mov edi, dword [ebp - 0x14]
test edi, edi
jbe 0x103f1dd
dec edi
push edi
call fcn.010351de
push 0xd
pop ecx
cmp cx, word [eax]
je 0x103f1e0
mov edi, dword [ebp - 0x14]
cmp byte [esi + 0x1268], 0
je 0x103f231
mov eax, dword [esi + 0x5c]
lea ecx, [eax + 1]
mov dword [esi + 0x5c], ecx
cmp dword [esi + 0x54], 8
jb 0x103f1fd
mov ecx, dword [esi + 0x40]
jmp 0x103f200
lea ecx, [esi + 0x40]
push ecx
push eax
push 0x100c960
push 0x400
push ebx
call fcn.010b7a02
mov eax, ebx
add esp, 0x14
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x103f21a
sub eax, ecx
sar eax, 1
push eax
push ebx
mov ecx, esi
call fcn.0103ef7a
sub edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 0x10]
call fcn.010351de
push eax
mov ecx, esi
call fcn.0103ef7a
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x103f2a6
xor edi, edi
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0x1002a8c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
je 0x103f2d4
cmp dword [esi + 0xc], edi
je 0x103f2a6
push 2
push 0x1002a8c
lea ecx, [ebp - 0x4c]
call fcn.01037157
cmp dword [eax + 0x18], 8
jb 0x103f28b
mov eax, dword [eax + 4]
jmp 0x103f28e
add eax, 4
push eax
push 0x100c648
call fcn.010b57ed
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.01032f16
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc eax
push 1
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov byte [esi + 0x1268], 1
call fcn.01035834
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x103f1bc
jmp 0x103f192
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x14]
mov ebx, eax
call fcn.010350c3
push edi
push 7
lea ecx, [ebp - 0x30]
call fcn.01033bfc
push 0x100c918
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.01033c5d
add esi, 0x1c
push esi
lea eax, [ebp - 0x4c]
push 0x100c8c0
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.01033bb7
push edi
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.01032f16
mov esi, 0x1004638
push esi
lea ecx, [ebp - 0x30]
call fcn.01033c5d
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x4c]
push 0x1002a94
push eax
mov byte [ebp - 4], 2
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.01033bb7
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.01032f16
push edi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.01032f16
push esi
lea ecx, [ebp - 0x30]
call fcn.01033c5d
push 0x100c650
lea ecx, [ebp - 0x30]
call fcn.01033c5d
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x44]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x44]
push eax
call fcn.010b4e4c
int3