Function at 0x100039d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10013b38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100192e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x100192e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x10], ecx
je 0x10003d65
cmp byte [ecx + 0x41], 0
je 0x10003d65
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10003d58
lea esi, [esp + 0x1c]
call fcn.100034d0
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ebx, [ebx]
cmp ecx, 0x10
jb 0x10003b63
test eax, eax
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x10003a87
cmp ecx, 0x10
mov edx, eax
jae 0x10003a6e
lea edx, [esp + 0x20]
cmp edx, ebx
ja 0x10003a87
cmp ecx, 0x10
mov edx, eax
jae 0x10003a7d
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add edx, esi
cmp ebx, edx
jbe 0x10003a94
call fcn.10005435
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x10003abf
cmp ecx, 0x10
mov edx, eax
jae 0x10003aa8
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add edx, esi
cmp ebx, edx
jb 0x10003abf
call fcn.10005435
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp ecx, 0x10
mov edi, dword [esp + 0x30]
jb 0x10003b70
test eax, eax
mov esi, eax
je 0x10003afa
cmp ecx, 0x10
mov edx, eax
jae 0x10003add
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x10003afa
cmp ecx, 0x10
mov edx, eax
jae 0x10003aec
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add edx, ebx
cmp esi, edx
mov ebx, dword [esp + 0x14]
jbe 0x10003b07
call fcn.10005435
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x10003b28
cmp ecx, 0x10
jae 0x10003b19
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
jb 0x10003b28
call fcn.10005435
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x10003b79
sub eax, 1
je 0x10003b81
sub eax, 2
lea ecx, [esp + 0x1c]
jne 0x10003d53
jmp 0x10003d60
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], ebx
jmp 0x10003a63
lea esi, [esp + 0x20]
jmp 0x10003ad2
mov eax, dword [esp + 0x10]
mov byte [eax + 0x41], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov eax, dword [esp + 0x20]
jb 0x10003d24
test eax, eax
mov esi, eax
je 0x10003bbc
cmp ecx, 0x10
mov edx, eax
jae 0x10003ba3
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x10003bbc
cmp ecx, 0x10
mov edx, eax
jae 0x10003bb2
lea edx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add edx, edi
cmp esi, edx
jbe 0x10003bc9
call fcn.10005435
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x10003bf4
cmp ecx, 0x10
mov edx, eax
jae 0x10003bdd
lea edx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add edx, edi
cmp esi, edx
jb 0x10003bf4
call fcn.10005435
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x10003c85
cmp ecx, 0x10
jb 0x10003d2d
test eax, eax
mov esi, eax
je 0x10003c33
cmp ecx, 0x10
mov edx, eax
jae 0x10003c1a
lea edx, [esp + 0x20]
cmp edx, esi
ja 0x10003c33
cmp ecx, 0x10
mov edx, eax
jae 0x10003c29
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add edx, ebx
cmp esi, edx
jbe 0x10003c40
call fcn.10005435
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
cmp edx, 0xfffffffe
je 0x10003c61
cmp ecx, 0x10
jae 0x10003c52
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp esi, eax
jb 0x10003c61
call fcn.10005435
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.10005289
add esp, 0x10
cmp edi, eax
jne 0x10003d4f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x41], 0
je 0x10003d5c
test edi, edi
jne 0x10003a50
or edx, 0xffffffff
sub edx, dword [esp + 0x30]
cmp edx, 8
ja 0x10003cb4
call fcn.10004d0c
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
add esi, 8
cmp esi, 0xfffffffe
jbe 0x10003ccd
call fcn.10004d0c
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp ecx, esi
jae 0x10003d36
mov eax, dword [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.10004090
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
test esi, esi
jbe 0x10003a50
cmp ecx, 0x10
mov ecx, eax
jae 0x10003cfb
lea ecx, [esp + 0x20]
mov edx, dword [esp + 0x30]
xor eax, eax
add ecx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
jae 0x10003d1b
lea eax, [esp + 0x20]
mov byte [eax + esi], 0
jmp 0x10003a42
lea esi, [esp + 0x20]
jmp 0x10003b98
lea esi, [esp + 0x20]
jmp 0x10003c0f
test esi, esi
jne 0x10003cea
cmp ecx, 0x10
mov dword [esp + 0x30], esi
jae 0x10003d47
lea eax, [esp + 0x20]
mov byte [eax], 0
jmp 0x10003a42
lea ecx, [esp + 0x1c]
call fcn.10001ca0
xor al, al
jmp 0x10003d67
lea ecx, [esp + 0x1c]
call fcn.10001ca0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100050b0
mov esp, ebp
pop ebp
ret