Function at 0x435320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e468
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, 0xffff
mov word [ebp - 0x3a], ax
movzx ecx, word [ebp - 0x3a]
movzx edx, word [ebp + 8]
cmp ecx, edx
jne 0x43536c
mov dword [ebp - 0x5c], 1
jmp 0x435373
mov dword [ebp - 0x5c], 0
movzx eax, byte [ebp - 0x5c]
test eax, eax
je 0x4353c4
movzx ecx, word [ebp + 8]
mov edx, 0xffff
movzx eax, dx
cmp ecx, eax
je 0x435394
movzx ecx, word [ebp + 8]
mov dword [ebp - 0x64], ecx
jmp 0x4353b6
mov edx, 0xffff
movzx eax, dx
test eax, eax
jne 0x4353a9
mov dword [ebp - 0x70], 1
jmp 0x4353b0
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x64], ecx
mov ax, word [ebp - 0x64]
jmp 0x4357b2
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x74], 0
je 0x43544c
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x30]
mov ecx, dword [edx]
mov edx, dword [eax]
lea eax, [edx + ecx*2]
cmp dword [ebp - 0xb0], eax
jae 0x43544c
mov cx, word [ebp + 8]
mov word [ebp - 0x50], cx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
sub ecx, 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
add eax, 2
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x7c]
mov cx, word [ebp - 0x50]
mov word [eax], cx
mov ax, word [ebp + 8]
jmp 0x4357b2
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x50], 0
jne 0x43545f
mov eax, 0xffff
jmp 0x4357b2
mov ecx, dword [ebp - 0x2c]
call fcn.00432580
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
jne 0x4354db
mov cx, word [ebp + 8]
mov word [ebp - 0x54], cx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
push ecx
movzx edx, word [ebp - 0x54]
push edx
call fcn.00457f96
add esp, 8
movzx eax, ax
cmp eax, 0xffff
je 0x4354ab
mov dword [ebp - 0x6c], 1
jmp 0x4354b2
mov dword [ebp - 0x6c], 0
movzx ecx, byte [ebp - 0x6c]
test ecx, ecx
je 0x4354c4
mov dx, word [ebp + 8]
mov word [ebp - 0x34], dx
jmp 0x4354cd
mov eax, 0xffff
mov word [ebp - 0x34], ax
mov ax, word [ebp - 0x34]
jmp 0x4357b2
mov dword [ebp - 0xb8], 8
mov cx, word [ebp + 8]
mov word [ebp - 0x30], cx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00408f20
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0041dcb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040aa20
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xa0], edx
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040aa20
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
lea ecx, [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x8c]
add edx, dword [ebp - 0xa0]
push edx
mov ecx, dword [ebp - 0x94]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x2e]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x435778
cmp dword [ebp - 0x40], 1
jle 0x4355d2
cmp dword [ebp - 0x40], 3
je 0x4356fa
jmp 0x435778
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040aa20
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xac]
mov dword [ebp - 0x38], eax
je 0x435672
cmp dword [ebp - 0x14], 0x10
jb 0x43561d
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x44], edx
jmp 0x435623
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 0x80]
push eax
call fcn.00458938
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x435672
mov ecx, 0xffff
mov word [ebp - 0x4a], cx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov ax, word [ebp - 0x4a]
jmp 0x4357b2
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x46], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x88], eax
je 0x4356a8
mov cx, word [ebp + 8]
mov word [ebp - 0x4c], cx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov ax, word [ebp - 0x4c]
jmp 0x4357b2
cmp dword [ebp - 0x38], 0
jbe 0x4356b0
jmp 0x4356f5
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0x90], 0x20
jae 0x4356d0
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00409f20
jmp 0x4356f5
mov eax, 0xffff
mov word [ebp - 0x4e], ax
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov ax, word [ebp - 0x4e]
jmp 0x4357b2
jmp 0x43579a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x98], edx
mov ax, word [ebp - 0x30]
mov word [ebp - 0x48], ax
mov ecx, dword [ebp - 0x98]
push ecx
movzx edx, word [ebp - 0x48]
push edx
call fcn.00457f96
add esp, 8
movzx eax, ax
cmp eax, 0xffff
je 0x435735
mov dword [ebp - 0x68], 1
jmp 0x43573c
mov dword [ebp - 0x68], 0
movzx ecx, byte [ebp - 0x68]
test ecx, ecx
je 0x43574e
mov dx, word [ebp + 8]
mov word [ebp - 0x32], dx
jmp 0x435757
mov eax, 0xffff
mov word [ebp - 0x32], ax
mov cx, word [ebp - 0x32]
mov word [ebp - 0x52], cx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov ax, word [ebp - 0x52]
jmp 0x4357b2
mov edx, 0xffff
mov word [ebp - 0x56], dx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov ax, word [ebp - 0x56]
jmp 0x4357b2
jmp 0x43551a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret 4