Function at 0x43c7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dbc59
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5114a8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5114a8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x18], esi
cmp eax, 0xffffffff
jne 0x43c7f1
xor eax, eax
jmp 0x43ca9b
mov ecx, dword [ebx + 0x24]
cmp dword [ecx], esi
je 0x43c818
mov edx, dword [ecx]
mov ecx, dword [ebx + 0x34]
mov edi, dword [ecx]
add edi, edx
cmp edx, edi
jae 0x43c818
dec dword [ecx]
mov ebx, dword [ebx + 0x24]
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov dword [ebx], edx
mov byte [ecx], al
jmp 0x43ca9b
mov ecx, dword [ebx + 0x4c]
cmp ecx, esi
je 0x43ca98
cmp dword [ebx + 0x3c], esi
jne 0x43c846
movsx eax, al
push ecx
push eax
call fcn.00469910
add esp, 8
cmp eax, 0xffffffff
je 0x43ca98
mov eax, dword [ebp + 8]
jmp 0x43ca9b
push esi
lea ecx, [esp + 0x5c]
push ecx
mov ecx, 8
mov byte [esp + 0x1a], al
call fcn.004076b0
mov dword [esp + 0x88], esi
lea esi, [esp + 0x28]
lea ecx, [esp + 0x58]
call fcn.004077b0
mov edi, eax
lea esi, [esp + 0x34]
lea ecx, [esp + 0x58]
mov byte [esp + 0x88], 1
call fcn.004077b0
mov dword [esp + 0x14], eax
mov esi, edi
mov byte [esp + 0x88], 2
call fcn.00408b90
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x1c], edx
call fcn.00408b90
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea esi, [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
add esi, edi
push esi
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x26]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
lea edi, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.00402660
lea edi, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.00402660
test esi, esi
jl 0x43ca84
cmp esi, 1
jg 0x43cabe
lea esi, [esp + 0x40]
lea ecx, [esp + 0x58]
call fcn.004077b0
mov esi, eax
mov byte [esp + 0x88], 3
call fcn.00408b90
mov esi, dword [esp + 0x20]
sub esi, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x14], esi
mov byte [esp + 0x88], 0
call fcn.00402660
test esi, esi
jbe 0x43c983
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x58]
call fcn.004077b0
mov byte [esp + 0x88], 4
or dword [esp + 0x18], 1
mov esi, eax
call fcn.00408b90
mov ecx, dword [ebx + 0x4c]
mov esi, dword [esp + 0x14]
push ecx
push esi
push 1
push eax
call fcn.00466690
add esp, 0x10
mov byte [esp + 0x13], 1
cmp esi, eax
jne 0x43c988
mov byte [esp + 0x13], 0
mov dword [esp + 0x88], 0
test byte [esp + 0x18], 1
je 0x43c9a8
and dword [esp + 0x18], 0xfffffffe
lea edi, [esp + 0x4c]
call fcn.00402660
cmp byte [esp + 0x13], 0
jne 0x43ca84
lea edx, [esp + 0x12]
mov byte [ebx + 0x41], 1
cmp dword [esp + 0x24], edx
jne 0x43caf3
test esi, esi
ja 0x43c9e4
cmp dword [esp + 0x70], 0x20
jae 0x43ca84
push 0
mov eax, 8
lea edi, [esp + 0x5c]
call fcn.00407710
lea esi, [esp + 0x28]
lea ecx, [esp + 0x58]
call fcn.004077b0
mov edi, eax
lea esi, [esp + 0x34]
lea ecx, [esp + 0x58]
mov byte [esp + 0x88], 1
call fcn.004077b0
mov dword [esp + 0x14], eax
mov esi, edi
mov byte [esp + 0x88], 2
call fcn.00408b90
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.00408b90
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea esi, [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
add esi, edi
push esi
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x26]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
lea edi, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.00402660
lea edi, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.00402660
test esi, esi
jge 0x43c901
lea ecx, [esp + 0x58]
mov dword [esp + 0x88], 0xffffffff
call fcn.00401740
or eax, 0xffffffff
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0045ef20
mov esp, ebp
pop ebp
ret 4
cmp esi, 3
jne 0x43ca84
mov eax, dword [ebx + 0x4c]
mov cl, byte [esp + 0x12]
call fcn.0043a770
test al, al
je 0x43cad8
mov esi, dword [ebp + 8]
jmp 0x43cadb
or esi, 0xffffffff
lea ecx, [esp + 0x58]
mov dword [esp + 0x88], 0xffffffff
call fcn.00401740
mov eax, esi
jmp 0x43ca9b
lea ecx, [esp + 0x58]
mov dword [esp + 0x88], 0xffffffff
call fcn.00401740
mov eax, dword [ebp + 8]
jmp 0x43ca9b