Function at 0x47c800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5614d6
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5c9550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0xbc]
call fcn.00488840
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x47c850
or eax, 0xffffffff
jmp 0x47ccfd
mov dword [ebp - 0x88], 0xffffffff
push 0
mov eax, dword [ebp - 0xbc]
add eax, 0xbe4
push eax
lea ecx, [ebp - 0x9c]
call fcn.004a2fbc
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x9c]
call fcn.004a2f7e
push 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0xbc4
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004a2fbc
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0xa8]
call fcn.004a2f7e
test eax, eax
je 0x47c8db
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.0047bc30
cmp dword [ebp - 0x70], 0xffffffff
jne 0x47c8f5
jmp 0x47ccd9
mov eax, dword [ebp - 0x70]
imul eax, eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
call fcn.00452e85
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00452e85
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x90], 0
je 0x47c939
cmp dword [ebp - 0x54], 0
jne 0x47c93e
jmp 0x47cc9e
push 0x40
push 0x56ad8c
mov eax, dword [ebp + 8]
push eax
call fcn.0045374d
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47c969
mov dword [ebp - 0x88], 0xfffffffe
jmp 0x47cc9e
mov dword [ebp - 0x6c], 1
mov ecx, dword [ebp - 0x74]
imul ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call fcn.004964e0
add esp, 0x10
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x4c]
imul ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x4c]
imul eax, dword [ebp - 0x74]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x4c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x64]
call eax
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0xbc]
call fcn.0048daa0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x74]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x7c]
imul eax, eax, 0x18
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], ecx
push 0xe
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.004550c0
add esp, 0xc
push 0x28
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004550c0
add esp, 0xc
mov ecx, 0x4d42
mov word [ebp - 0x64], cx
mov edx, dword [ebp - 0x50]
add edx, 0x36
mov dword [ebp - 0x62], edx
mov dword [ebp - 0x5a], 0x36
mov dword [ebp - 0x48], 0x28
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40], ecx
mov edx, 1
mov word [ebp - 0x3c], dx
mov eax, 0x18
mov word [ebp - 0x3a], ax
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x78], 0
mov edx, dword [ebp - 0x1c]
push edx
push 0xe
push 1
lea eax, [ebp - 0x64]
push eax
call fcn.004539dd
add esp, 0x10
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xe
je 0x47cb06
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a335c
add esp, 4
mov dword [ebp - 0x88], 0xfffffffd
jmp 0x47cc85
mov edx, dword [ebp - 0x1c]
push edx
push 0x28
push 1
lea eax, [ebp - 0x48]
push eax
call fcn.004539dd
add esp, 0x10
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x28
je 0x47cb3e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a335c
add esp, 4
mov dword [ebp - 0x88], 0xfffffffd
jmp 0x47cc85
mov edx, dword [ebp - 0x7c]
imul edx, edx, 3
cmp dword [ebp - 0x10], edx
jne 0x47cb98
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x70]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x54]
push eax
call fcn.004539dd
add esp, 0x10
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
cmp edx, dword [ebp - 0x50]
je 0x47cb93
mov eax, dword [ebp + 8]
push eax
call fcn.004a335c
add esp, 4
mov dword [ebp - 0x88], 0xfffffffd
jmp 0x47cc85
jmp 0x47cc7c
mov ecx, dword [ebp - 0x7c]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xb0], 0
jmp 0x47cbc4
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0x18]
jge 0x47cc7c
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x7c]
imul eax, eax, 3
push eax
push 1
mov ecx, dword [ebp - 0x7c]
imul ecx, ecx, 3
imul ecx, dword [ebp - 0xb0]
add ecx, dword [ebp - 0x54]
push ecx
call fcn.004539dd
add esp, 0x10
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x7c]
imul edx, edx, 3
cmp dword [ebp - 0x78], edx
je 0x47cc1f
mov eax, dword [ebp + 8]
push eax
call fcn.004a335c
add esp, 4
mov dword [ebp - 0x88], 0xfffffffc
jmp 0x47cc85
mov byte [ebp - 0xb4], 0
xor ecx, ecx
mov word [ebp - 0xb3], cx
mov byte [ebp - 0xb1], cl
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xac]
push eax
push 1
lea ecx, [ebp - 0xb4]
push ecx
call fcn.004539dd
add esp, 0x10
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
cmp edx, dword [ebp - 0xac]
je 0x47cc77
mov eax, dword [ebp + 8]
push eax
call fcn.004a335c
add esp, 4
mov dword [ebp - 0x88], 0xfffffffb
jmp 0x47cc85
jmp 0x47cbb5
mov ecx, dword [ebp - 0x62]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x1c], 0
je 0x47cc9e
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00453ad6
add esp, 4
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x90], 0
je 0x47ccc0
mov eax, dword [ebp - 0x90]
push eax
call fcn.00452f4f
add esp, 4
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x54], 0
je 0x47ccd9
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00452f4f
add esp, 4
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.0047bc30
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4