Function at 0x4376c0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3e4], edx
mov edi, ecx
mov dword [ebp - 0x3dc], edi
xor ebx, ebx
test edi, edi
jne 0x437942
push 0x6cf1e8
lea ecx, [ebp - 0xcc]
call fcn.00420830
mov dword [ebp - 4], ebx
mov eax, dword [0x6cf270]
cmp word [eax], bx
jne 0x4377ed
mov eax, dword [ebp + 8]
test eax, eax
je 0x43773a
push eax
lea ecx, [ebp - 0xcc]
call fcn.004208f0
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c4], eax
cmp eax, 0xffffffff
jne 0x43778c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 0xcc]
cmp eax, ecx
je 0x437a27
push eax
call fcn.006140b6
add esp, 4
jmp 0x437a27
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x437763
push ebx
mov dword [ebp - 0x3cc], 0
call fcn.005c386a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3cc]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3cc], ebx
je 0x437919
push esi
call fcn.005c3e37
add esp, 4
jmp 0x437763
push eax
lea ecx, [ebp - 0xcc]
call fcn.004208f0
cmp byte [0x6cf178], 0
je 0x437809
mov eax, dword [0x6d922c]
jmp 0x437876
mov esi, dword [ebp - 0xcc]
push 0x340
call fcn.005c3873
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3d8], ebx
mov ecx, ebx
push 2
push 0
push esi
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x134], 0xffffffff
call fcn.004365f0
mov dword [0x6d9250], eax
test eax, eax
je 0x437863
push 0x340
push ebx
call fcn.005c385c
add esp, 8
jmp 0x437763
push 8
call fcn.005c3873
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov dword [ebp - 0x3c0], eax
test eax, eax
je 0x437763
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3b4]
push ecx
lea ecx, [ebp - 0x3c8]
push ecx
push ecx
mov ecx, eax
call fcn.00436d10
add esp, 0xc
test eax, eax
jne 0x437763
mov ebx, dword [ebp - 0x188]
test ebx, ebx
je 0x437763
push ebx
call fcn.005c386a
mov edx, dword [ebp - 0x3c8]
mov esi, eax
mov ecx, dword [ebp - 0x3c0]
push ebx
push esi
call fcn.00436ec0
add esp, 0xc
test eax, eax
je 0x437905
cmp eax, 0x600
je 0x437905
push esi
call fcn.005c3e37
add esp, 4
cmp byte [0x6cf178], 0
jne 0x437763
mov ecx, dword [ebp - 0x3c0]
call fcn.00437010
jmp 0x437763
cmp byte [0x6cf178], 0
jne 0x437919
mov ecx, dword [ebp - 0x3c0]
call fcn.00437010
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 0xcc]
cmp eax, ecx
je 0x437a1f
push eax
call fcn.006140b6
add esp, 4
jmp 0x437a1f
mov ecx, str.COLOR
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437976
test dx, dx
je 0x437972
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437976
add eax, 4
add ecx, 4
test dx, dx
jne 0x437950
xor eax, eax
jmp 0x43797b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x437987
lea esi, [eax + 1]
jmp 0x437ac7
mov eax, dword [0x6d9230]
test eax, eax
push edi
push dword [ebp + 8]
cmove eax, dword [0x6d9228]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [ebp - 0x3cc], ebx
test ebx, ebx
je 0x437a27
mov ecx, dword [0x6d9230]
test ecx, ecx
push ebx
cmove ecx, dword [0x6d9228]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c8], eax
push ebx
test eax, eax
jne 0x4379d6
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x437a27
mov eax, dword [0x6d9230]
test eax, eax
cmove eax, dword [0x6d9228]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x437a27
push ebx
call fcn.005c386a
add esp, 4
mov esi, eax
push ebx
push dword [ebp - 0x3c8]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.005fe040
add esp, 0xc
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x437ac7
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c4], eax
cmp eax, 0xffffffff
je 0x437aa5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x437aa5
push ebx
mov dword [ebp - 0x3c8], 0
call fcn.005c386a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3c8]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c8], ebx
je 0x437ac3
push esi
call fcn.005c3e37
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x437aa5
mov dword [ebp - 0x3c0], 0
mov dword [ebp - 0x3d4], 1
mov dword [ebp - 0x3c4], 1
test edi, edi
je 0x437b1f
mov ecx, str.COLOR
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437b16
test dx, dx
je 0x437b12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437b16
add eax, 4
add ecx, 4
test dx, dx
jne 0x437af0
xor eax, eax
jmp 0x437b1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x437b84
lea eax, [ebx + esi]
mov dword [ebp - 0x174], 0
mov dword [ebp - 0xd8], eax
lea edx, [ebp - 0x3d4]
push ecx
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x164], 0
push eax
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0xd4], esi
push eax
lea ecx, [ebp - 0x184]
mov dword [ebp - 0xdc], esi
call fcn.0044c150
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x3c0], ebx
push esi
call fcn.005c3e37
add esp, 4
test ebx, ebx
je 0x437aa5
mov edx, dword [ebp - 0x3c4]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x3d4]
mov ebx, edx
imul ebx, ecx
mov eax, edx
neg eax
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x38], eax
push 0
push 0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0x28
lea eax, [ebx*4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3bc]
push eax
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], 0x200001
push eax
push 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x3b5], 0
mov dword [ebp - 0x3bc], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3d8], eax
test eax, eax
je 0x437aa5
mov dword [ebp - 0x3d0], 0
test edi, edi
je 0x437cb2
mov ecx, str.COLOR
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437c49
test dx, dx
je 0x437c45
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437c49
add eax, 4
add ecx, 4
test dx, dx
jne 0x437c23
xor eax, eax
jmp 0x437c4e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x437cb2
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
jne 0x437c68
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push 0x10
lea ecx, [ebp - 0x3cc]
push ecx
push eax
call fcn.00614442
mov dword [ebp - 0x3c8], eax
lea edx, [ebp - 0x3d0]
mov cl, byte [ebp - 0x3c5]
add esp, 0xc
mov byte [ebp - 0x3ce], al
mov al, byte [ebp - 0x3c6]
mov byte [ebp - 0x3cd], cl
mov byte [ebp - 0x3cf], ah
mov byte [ebp - 0x3d0], al
mov dword [ebp - 0x3c0], edx
jmp 0x437cb8
mov edx, dword [ebp - 0x3c0]
xor esi, esi
test ebx, ebx
jle 0x437dd6
mov edi, ebx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x3bc]
mov cl, byte [edx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x3bc]
cmp byte [eax + esi*4 + 3], 0xff
lea ebx, [eax + esi*4]
jae 0x437d5e
movzx eax, byte [edx + esi*4 + 3]
movzx ecx, byte [edx + esi*4 + 2]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [ebx], dl
mov ebx, dword [ebp - 0x3c0]
movzx eax, byte [ebx + esi*4 + 3]
movzx ecx, byte [ebx + esi*4 + 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3bc]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [ebx + esi*4 + 3]
movzx ecx, byte [ebx + esi*4]
mov bl, 1
imul ecx, eax
mov eax, 0x80808081
mov byte [ebp - 0x3b5], bl
mul ecx
mov eax, dword [ebp - 0x3bc]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, dword [ebp - 0x3c0]
jmp 0x437d87
mov al, byte [edx + esi*4 + 2]
mov byte [ebx], al
mov eax, dword [ebp - 0x3bc]
movzx ecx, byte [edx + esi*4 + 1]
mov bl, byte [ebp - 0x3b5]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x3bc]
movzx ecx, byte [edx + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [ebp - 0x3e4]
cmp dword [eax + esi*4], ecx
jne 0x437dc5
mov byte [eax + esi*4], 0
mov bl, 1
mov eax, dword [ebp - 0x3bc]
mov byte [ebp - 0x3b5], bl
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x3bc]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x3bc]
mov byte [eax + esi*4 + 3], 0
inc esi
cmp esi, edi
jl 0x437cd0
mov edi, dword [ebp - 0x3dc]
jmp 0x437ddc
mov bl, byte [ebp - 0x3b5]
test edi, edi
je 0x437e14
mov eax, str.COLOR
mov cx, word [edi]
cmp cx, word [eax]
jne 0x437e0b
test cx, cx
je 0x437e07
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x437e0b
add edi, 4
add eax, 4
test cx, cx
jne 0x437de5
xor eax, eax
jmp 0x437e10
sbb eax, eax
or eax, 1
test eax, eax
je 0x437e1d
push edx
call fcn.006140b6
add esp, 4
push 0xa0
call fcn.005c3873
add esp, 4
mov dword [ebp - 0x3dc], eax
xor edx, edx
lea ecx, [eax + 0x1c]
mov dword [eax + 0x18], ecx
mov word [ecx], dx
mov ecx, dword [ebp - 0x3d8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x3bc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3d4]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x3c4]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], bl
mov byte [eax + 0x15], dl
mov dword [eax + 8], edx
jmp 0x437aa7