Function at 0x45cd30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3c08
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
call fcn.0045c990
mov word [ebp - 0x42], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42]
push ecx
call fcn.0045ca60
add esp, 8
movzx edx, al
test edx, edx
je 0x45cd92
lea eax, [ebp + 8]
push eax
call fcn.0045d060
add esp, 4
jmp 0x45d040
mov ecx, dword [ebp - 0x74]
call fcn.0045e580
test eax, eax
je 0x45cddc
mov ecx, dword [ebp - 0x74]
call fcn.0045e580
mov esi, eax
mov ecx, dword [ebp - 0x74]
call fcn.0045e640
cmp esi, eax
jae 0x45cddc
lea ecx, [ebp + 8]
push ecx
call fcn.0045cbb0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x74]
call fcn.0045e760
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x45d040
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x4c], 0
jne 0x45cdf4
call fcn.0045c990
jmp 0x45d040
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x3c], 0
jne 0x45ce41
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0045cbb0
add esp, 4
push eax
call fcn.0045d0e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x45ce2a
mov dx, word [ebp + 8]
mov word [ebp - 0x76], dx
jmp 0x45ce33
call fcn.0045c990
mov word [ebp - 0x76], ax
mov ax, word [ebp - 0x76]
jmp 0x45d040
mov dword [ebp - 0x10], 8
lea eax, [ebp + 8]
push eax
call fcn.0045cbb0
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0045deb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.0041e670
add esi, eax
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x16]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 0x3c]
call fcn.0045d0a0
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jl 0x45d00e
cmp dword [ebp - 0x7c], 1
jle 0x45cee3
cmp dword [ebp - 0x7c], 3
je 0x45cfc3
jmp 0x45d00e
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x45cf4f
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
push eax
call fcn.004b1a07
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x45cf4f
call fcn.0045c990
mov word [ebp - 0x66], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e570
mov ax, word [ebp - 0x66]
jmp 0x45d040
mov eax, dword [ebp - 0x74]
mov byte [eax + 0x42], 1
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
cmp ecx, edx
je 0x45cf80
mov ax, word [ebp + 8]
mov word [ebp - 0x68], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e570
mov ax, word [ebp - 0x68]
jmp 0x45d040
cmp dword [ebp - 0x40], 0
jbe 0x45cf88
jmp 0x45cfc1
lea ecx, [ebp - 0x3c]
call fcn.0041e670
cmp eax, 0x20
jae 0x45cfa3
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0045def0
jmp 0x45cfc1
call fcn.0045c990
mov word [ebp - 0x6a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e570
mov ax, word [ebp - 0x6a]
jmp 0x45d040
jmp 0x45d02c
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
mov ax, word [ebp - 0x18]
push eax
call fcn.0045d0e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x45cfe8
mov dx, word [ebp + 8]
mov word [ebp - 0x7e], dx
jmp 0x45cff1
call fcn.0045c990
mov word [ebp - 0x7e], ax
mov ax, word [ebp - 0x7e]
mov word [ebp - 0x6c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e570
mov ax, word [ebp - 0x6c]
jmp 0x45d040
call fcn.0045c990
mov word [ebp - 0x6e], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e570
mov ax, word [ebp - 0x6e]
jmp 0x45d040
jmp 0x45ce6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret 4