Function at 0x47b8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5eb283
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp byte [ebx + 4], 0
mov dword [esp + 0x18], 0
jne 0x47ba74
lea esi, [esp + 0x9c]
call fcn.0043d560
mov dword [esp + 0xc8], 0
cmp byte [ebx + 0x24], 0
jne 0x47b99d
cmp dword [esp + 0xb4], 0x10
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa0]
mov esi, edx
jae 0x47b939
lea ecx, [esp + 0xa0]
test ecx, ecx
mov eax, dword [ebx]
je 0x47b964
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x47b964
push 0
lea edi, [esp + 0x1c]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47b964
cmp esi, dword [esp + 0x18]
je 0x47ba46
push 0x6152e0
lea ecx, [esp + 0x84]
call fcn.0040b0c0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xcc], 1
call fcn.004152a0
push 0x62a600
lea ecx, [esp + 0x34]
push ecx
call fcn.005bed88
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edi, dword [edi + 0x14]
lea edx, [edi + eax]
cmp edx, ecx
mov dword [esp + 0x1c], eax
jb 0x47b9fc
add edi, eax
test edi, edi
mov dword [esp + 0x24], edi
fild dword [esp + 0x24]
jge 0x47b9c8
fadd qword [0x61cde0]
fmul qword [0x61cf60]
mov esi, dword [ebx + 0x28]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov edi, dword [esp + 0x24]
fldcw word [esp + 0x16]
call fcn.0042dd60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb0]
mov esi, dword [ebx + 0x28]
mov edx, dword [esi + 4]
add ecx, eax
cmp ecx, edx
jbe 0x47ba11
mov ecx, edx
mov dword [esi + 0xc], ecx
cmp dword [esp + 0xb4], 0x10
mov edx, dword [esp + 0xa0]
jae 0x47ba2c
lea edx, [esp + 0xa0]
mov ecx, dword [ebx + 0x28]
mov esi, dword [esp + 0xb0]
mov ecx, dword [ecx + 8]
push esi
push edx
add ecx, eax
push ecx
call fcn.005c3120
add esp, 0xc
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0xb4], 0x10
jb 0x47bc09
mov edx, dword [esp + 0xa0]
push edx
call fcn.0059b877
add esp, 4
jmp 0x47bc09
push edi
lea esi, [esp + 0x84]
call fcn.0043d510
add esp, 4
mov dword [esp + 0xc8], 2
cmp byte [ebx + 0x24], 0
jne 0x47bb1c
mov eax, dword [esp + 0x84]
mov edi, 8
cmp dword [esp + 0x98], edi
jae 0x47bab5
lea eax, [esp + 0x84]
mov esi, dword [esp + 0x94]
mov ecx, dword [ebx]
add esi, esi
test eax, eax
je 0x47bae9
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x47bae9
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47bae9
cmp esi, dword [esp + 0x18]
je 0x47bbc9
push 0x6152e0
lea ecx, [esp + 0x34]
call fcn.0040b0c0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xcc], 3
call fcn.004152a0
push 0x62a600
lea ecx, [esp + 0x5c]
push ecx
call fcn.005bed88
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edi, dword [edi + 0x14]
lea edx, [edi + eax]
cmp edx, ecx
mov dword [esp + 0x24], eax
jb 0x47bb7b
add edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
jge 0x47bb47
fadd qword [0x61cde0]
fmul qword [0x61cf60]
mov esi, dword [ebx + 0x28]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
fldcw word [esp + 0x16]
call fcn.0042dd60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x94]
mov esi, dword [ebx + 0x28]
mov edx, dword [esi + 4]
add ecx, eax
cmp ecx, edx
jbe 0x47bb90
mov ecx, edx
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x84]
mov edi, 8
cmp dword [esp + 0x98], edi
jae 0x47bbaf
lea edx, [esp + 0x84]
mov ecx, dword [ebx + 0x28]
mov esi, dword [esp + 0x94]
mov ecx, dword [ecx + 8]
push esi
push edx
add ecx, eax
push ecx
call fcn.005c3120
add esp, 0xc
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0x98], edi
jb 0x47bbed
mov edx, dword [esp + 0x84]
push edx
call fcn.0059b877
add esp, 4
xor eax, eax
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], eax
mov word [esp + 0x84], ax
cmp byte [ebp + 0xc], 0
je 0x47bc22
cmp byte [ebx + 0x24], 0
jne 0x47bc22
push 0
lea eax, [ebx + 8]
push eax
mov ecx, ebx
call fcn.0047b8a0
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 8