Function at 0x10043940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a2078
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x10], ecx
je 0x10043c32
cmp byte [ecx + 0x41], 0
je 0x10043c32
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10043c25
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x28], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 8
cmp ecx, 0x10
jae 0x100439ca
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x10043af1
mov ebx, eax
mov dword [esp + 0x14], ebx
test eax, eax
je 0x10043a15
mov ecx, eax
cmp edx, 0x10
jae 0x100439fc
lea ecx, [esp + 0x28]
cmp ecx, ebx
ja 0x10043a15
mov ecx, eax
cmp edx, 0x10
jae 0x10043a0b
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jbe 0x10043a22
call fcn.1016d669
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x10043a4d
mov ecx, eax
cmp edx, 0x10
jae 0x10043a36
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jb 0x10043a4d
call fcn.1016d669
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
cmp edx, 0x10
jb 0x10043afe
mov esi, eax
test eax, eax
je 0x10043a88
mov ecx, eax
cmp edx, 0x10
jae 0x10043a6b
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x10043a88
mov ecx, eax
cmp edx, 0x10
jae 0x10043a7a
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov ebx, dword [esp + 0x14]
cmp esi, ecx
jbe 0x10043a95
call fcn.1016d669
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x10043ab6
cmp edx, 0x10
jae 0x10043aa7
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x10043ab6
call fcn.1016d669
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
add ebx, edi
push ebx
mov ebx, dword [esp + 0x18]
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x10043b07
sub eax, 1
je 0x10043b0b
sub eax, 2
lea ecx, [esp + 0x24]
jne 0x10043c20
jmp 0x10043c2d
lea ebx, [esp + 0x28]
mov dword [esp + 0x14], ebx
jmp 0x100439f1
lea esi, [esp + 0x28]
jmp 0x10043a60
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
jb 0x10043bbf
mov esi, eax
test eax, eax
je 0x10043b46
mov ecx, eax
cmp edx, 0x10
jae 0x10043b2d
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x10043b46
mov ecx, eax
cmp edx, 0x10
jae 0x10043b3c
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x10043b53
call fcn.1016d669
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x10043b7e
mov ecx, eax
cmp edx, 0x10
jae 0x10043b67
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jb 0x10043b7e
call fcn.1016d669
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x10043bfd
cmp edx, 0x10
jae 0x10043b8f
lea eax, [esp + 0x28]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.10043ef0
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp esi, 0xfffffffc
je 0x10043bd9
test esi, esi
jne 0x10043bb4
call fcn.1016d669
cmp dword [esi + 0x18], 0x10
jb 0x10043bc8
mov eax, dword [esi + 4]
jmp 0x10043bcb
lea esi, [esp + 0x28]
jmp 0x10043b22
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x10043bd9
call fcn.1016d669
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push ebx
call fcn.1016ef6a
add esp, 0x10
cmp edi, eax
jne 0x10043c1c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x41], 0
je 0x10043c29
test edi, edi
jne 0x100439de
push edi
push 8
lea ecx, [esp + 0x2c]
call fcn.10004ae0
jmp 0x100439d6
lea ecx, [esp + 0x24]
call fcn.100045c0
xor al, al
jmp 0x10043c34
lea ecx, [esp + 0x24]
call fcn.100045c0
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret