Function at 0x47fad1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x47fd50
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x28
pop esi
push 0x2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x88]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
call fcn.004ee670
add esp, 0xc
push ebx
lea eax, [ebp - 0x88]
push eax
push ebx
push 1
push ebx
push dword [ebp - 0x4c]
mov dword [ebp - 0x88], esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0xa
pop ecx
lea esi, [ebp - 0x88]
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x1b], al
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
mov dword [ebp - 0x38], ebx
cmp ax, 8
jb 0x47fb68
mov byte [ebp - 0x1a], bl
jmp 0x47fb71
mov dl, 2
mov cl, al
shl dl, cl
mov byte [ebp - 0x1a], dl
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov word [ebp - 0x18], cx
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x40]
push ebx
mov word [ebp - 0x16], ax
mov eax, dword [esi]
push ebx
push eax
push dword [ebp + 8]
add ecx, ecx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x47fd33
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47fd33
cmp dword [ebp - 4], 0x28
jne 0x47fd33
mov eax, dword [ebp - 0x40]
add dword [esi], 0x28
cdq
push 0xa
sub eax, edx
pop ecx
push dword [ebp - 0x34]
sar eax, 1
mov dword [ebp - 0x40], eax
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
call fcn.004e7db0
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
pop ecx
push ebx
lea ecx, [ebp - 0x88]
push ecx
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
push ebx
push dword [ebp - 0x4c]
push dword [ebp - 8]
call esi
cmp eax, dword [ebp - 0x40]
jne 0x47fd25
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47fd25
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 4], ecx
jne 0x47fd25
mov eax, dword [ebp + 0x14]
add dword [eax], ecx
push 0x2c
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.004ee670
add esp, 0xc
xor eax, eax
inc eax
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x88]
push eax
push ebx
push 1
push ebx
push dword [ebp - 0x50]
mov dword [ebp - 0x88], 0x28
push dword [ebp - 8]
mov dword [ebp - 0x78], ebx
call esi
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x14], eax
push 0xa
pop ecx
lea esi, [ebp - 0x88]
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
push dword [ebp - 0x34]
lea esi, [ebp - 0x48]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
call fcn.004e7db0
pop ecx
xor edi, edi
mov esi, eax
inc edi
push edi
lea eax, [ebp - 0x88]
push eax
push esi
push dword [ebp - 0x40]
push ebx
push dword [ebp - 0x50]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp eax, dword [ebp - 0x40]
jne 0x47fd25
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
test eax, eax
je 0x47fd25
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 4], eax
jne 0x47fd25
mov ecx, dword [ebp + 0x14]
add dword [ecx], eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x47fd25
push ebx
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x47fd25
cmp dword [ebp - 4], 0x10
jne 0x47fd25
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0xc], ebx
je 0x47fd33
push dword [ebp - 0xc]
call fcn.004e93ab
pop ecx
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x50]
call esi
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret