Function at 0x466710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x5f65c1]
mov byte [ebp - 0x208], al
push 0x1ff
push 0
lea ecx, [ebp - 0x207]
push ecx
call fcn.005323e0
add esp, 0xc
mov dl, byte [0x5f65c2]
mov byte [ebp - 0x408], dl
push 0x1ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.005323e0
add esp, 0xc
mov dword [ebp - 0x40c], 0
push str.WD_Get
push 4
call fcn.00436500
add esp, 8
cmp dword [0x5656ec], 0
jle 0x466ab0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xd852c0
push 0x565c0c
lea eax, [ebp - 0x208]
push eax
call fcn.00532706
add esp, 0x14
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x565c14
lea eax, [ebp - 0x408]
push eax
call fcn.00532706
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x466a8d
mov cl, byte [0x5f65c3]
mov byte [ebp - 0x610], cl
push 0x1ff
push 0
lea edx, [ebp - 0x60f]
push edx
call fcn.005323e0
add esp, 0xc
push 0x565c1c
lea eax, [ebp - 0x208]
push eax
call fcn.00532590
add esp, 8
lea ecx, [ebp - 0x408]
push ecx
push 0x565c20
lea edx, [ebp - 0x610]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [0x5f6484]
push edx
call fcn.00518550
add esp, 0xc
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x466a8b
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x618], 0
lea eax, [ebp - 0x408]
push eax
push 0x565c28
lea ecx, [ebp - 0x610]
push ecx
call fcn.00532706
add esp, 0xc
lea edx, [ebp - 0x610]
push edx
call fcn.0041dea0
add esp, 4
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
je 0x466a8b
push 8
push 0x565c30
mov eax, dword [ebp - 0x614]
mov ecx, dword [eax + 4]
push ecx
call fcn.0053387c
add esp, 0xc
test eax, eax
jne 0x466a66
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x624], 0
mov edx, dword [ebp - 0x614]
mov eax, dword [edx + 4]
add eax, 8
mov dword [ebp - 0x61c], eax
mov ecx, dword [ebp - 0x61c]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x61c]
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x61c]
movzx ecx, byte [eax + 2]
shl ecx, 8
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x61c]
movzx ecx, byte [eax + 3]
shl ecx, 8
shl ecx, 8
shl ecx, 8
add edx, ecx
mov dword [ebp - 0x628], edx
mov edx, dword [ebp - 0x614]
mov eax, dword [edx + 4]
add eax, 0xc
mov dword [ebp - 0x61c], eax
mov ecx, dword [ebp - 0x61c]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x61c]
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x61c]
movzx ecx, byte [eax + 2]
shl ecx, 8
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x61c]
movzx ecx, byte [eax + 3]
shl ecx, 8
shl ecx, 8
shl ecx, 8
add edx, ecx
mov dword [ebp - 0x620], edx
mov edx, dword [ebp - 0x620]
add edx, 5
push edx
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
je 0x466a55
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [ebp - 0x614]
mov edx, dword [ecx + 4]
add edx, 0x10
push edx
lea eax, [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0x624]
push ecx
call fcn.0049d3d0
add esp, 0x10
push 0x565c3c
lea edx, [ebp - 0x408]
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x618], eax
cmp dword [ebp - 0x618], 0
je 0x466a3c
mov eax, dword [ebp - 0x618]
push eax
push 1
mov ecx, dword [ebp - 0x620]
push ecx
mov edx, dword [ebp - 0x624]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0x618]
push eax
call fcn.00431d50
add esp, 4
mov ecx, dword [ebp - 0x624]
push ecx
call fcn.00532828
add esp, 4
mov dword [ebp - 0x624], 0
lea edx, [ebp - 0x610]
push edx
call fcn.00429360
add esp, 4
jmp 0x466a7c
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x610]
push ecx
call fcn.00488210
add esp, 8
mov edx, dword [ebp - 0x614]
push edx
call fcn.0041e310
add esp, 4
jmp 0x466ab0
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [0x5f6484]
push edx
call fcn.00518550
add esp, 0xc
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret