Function at 0x43d150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca108
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [esp + 0x14], edi
je 0x43d472
cmp byte [edi + 0x41], 0
je 0x43d472
mov esi, dword [edi]
add esi, 4
call fcn.004160b0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov dword [esp + 0x18], eax
call fcn.004160b0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
call fcn.00416090
add esp, 8
test al, al
jne 0x43d465
push 0
push 8
lea ecx, [esp + 0x2c]
call fcn.004165b0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x43d309
mov ebx, eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x43d22d
mov ecx, eax
cmp edx, 0x10
jae 0x43d214
lea ecx, [esp + 0x28]
cmp ecx, ebx
ja 0x43d22d
mov ecx, eax
cmp edx, 0x10
jae 0x43d223
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jbe 0x43d23a
call fcn.004a0da7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x43d265
mov ecx, eax
cmp edx, 0x10
jae 0x43d24e
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jb 0x43d265
call fcn.004a0da7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
cmp edx, 0x10
jb 0x43d316
mov esi, eax
test eax, eax
je 0x43d2a0
mov ecx, eax
cmp edx, 0x10
jae 0x43d283
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x43d2a0
mov ecx, eax
cmp edx, 0x10
jae 0x43d292
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov ebx, dword [esp + 0x18]
cmp esi, ecx
jbe 0x43d2ad
call fcn.004a0da7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x43d2ce
cmp edx, 0x10
jae 0x43d2bf
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x43d2ce
call fcn.004a0da7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x43d31f
sub eax, 1
je 0x43d327
sub eax, 2
lea ecx, [esp + 0x24]
jne 0x43d460
jmp 0x43d46d
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], ebx
jmp 0x43d209
lea esi, [esp + 0x28]
jmp 0x43d278
mov eax, dword [esp + 0x14]
mov byte [eax + 0x41], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
jb 0x43d44a
mov esi, eax
test eax, eax
je 0x43d362
mov ecx, eax
cmp edx, 0x10
jae 0x43d349
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x43d362
mov ecx, eax
cmp edx, 0x10
jae 0x43d358
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x43d36f
call fcn.004a0da7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x43d39a
mov ecx, eax
cmp edx, 0x10
jae 0x43d383
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jb 0x43d39a
call fcn.004a0da7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
sub edi, esi
je 0x43d427
cmp edx, 0x10
jb 0x43d453
mov esi, eax
test eax, eax
je 0x43d3d9
mov ecx, eax
cmp edx, 0x10
jae 0x43d3c0
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x43d3d9
mov ecx, eax
cmp edx, 0x10
jae 0x43d3cf
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
cmp esi, ecx
jbe 0x43d3e6
call fcn.004a0da7
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x43d407
cmp edx, 0x10
jae 0x43d3f8
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x43d407
call fcn.004a0da7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.004a7647
add esp, 0x10
cmp edi, eax
jne 0x43d45c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x41], 0
je 0x43d469
test edi, edi
jne 0x43d1f6
push edi
push 8
lea ecx, [esp + 0x2c]
call fcn.00409500
jmp 0x43d1ee
lea esi, [esp + 0x28]
jmp 0x43d33e
lea esi, [esp + 0x28]
jmp 0x43d3b5
lea ecx, [esp + 0x24]
call fcn.004059e0
xor al, al
jmp 0x43d474
lea ecx, [esp + 0x24]
call fcn.004059e0
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.004a0e91
mov esp, ebp
pop ebp
ret