Function at 0x402af0
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f415
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x41500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x415768]
mov esi, eax
push dword [0x415774]
mov dword [ebp - 0x70], esi
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [ebp - 0x74], eax
call edi
push 0xcc0020
push dword [0x415724]
mov esi, eax
push dword [0x415754]
push dword [ebp - 0x78]
push dword [0x415768]
push dword [0x415774]
push 0
push 0
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [ebp - 0x70]
push esi
call edi
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.skill_check.bmp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.0040bf10
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov edx, dword [0x415774]
mov eax, dword [0x415768]
mov dword [ebp - 0x60], edx
neg eax
imul edx, dword [0x415768]
mov dword [ebp - 0x5c], eax
mov eax, 0x4d42
mov word [ebp - 0x3c], ax
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
shl edx, 2
push edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x64], 0x28
lea eax, [edx + 0x36]
mov dword [ebp - 0x58], 0x200001
mov dword [ebp - 0x3a], eax
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], 0x36
call fcn.0040e51c
mov edi, eax
add esp, 4
mov dword [ebp - 0x68], edi
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
push edi
push dword [0x415768]
push 0
push dword [ebp - 0x74]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 0x4107d0
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x6c]
add esp, 0xc
test eax, eax
je 0x402cc5
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 1
lea eax, [ebp - 0x3c]
push 0xe
push eax
call esi
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push 1
push 0x28
push eax
call esi
mov eax, dword [0x415774]
imul eax, dword [0x415768]
push dword [ebp - 0x6c]
shl eax, 2
push eax
push 1
push edi
call esi
push dword [ebp - 0x6c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [ebp - 0x70]
add esp, 0x34
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x78]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Saving_screenshot:
call fcn.0040b5a0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push 0x40b870
cmovae edx, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.0040c290
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call fcn.0040df8e
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0x10
jb 0x402d55
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402d4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402d4b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e50e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040df80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret