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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5234f0
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x569434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x320], edi
test edi, edi
jne 0x43cef5
call fcn.0042e790
push eax
lea ecx, [ebp - 0xc0]
call fcn.004280a0
mov dword [ebp - 4], esi
call fcn.0042e7a0
mov ecx, eax
call fcn.00428ce0
test al, al
je 0x43cc93
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
call fcn.004284a0
push esi
push 0x80
push 3
push esi
push 1
push bind
lea ecx, [ebp - 0xc0]
call fcn.00428a90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f4], eax
cmp eax, 0xffffffff
jne 0x43cc0d
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], eax
call fcn.004281f0
jmp 0x43cfc1
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x43cc2f
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
push esi
mov dword [ebp - 0x31c], 0
call fcn.004dc5db
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x31c]
push 0
push eax
push esi
push ebx
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x31c], esi
je 0x43cede
push ebx
call fcn.004dc2b7
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfbb
call fcn.0042ea60
test al, al
jne 0x43cdc0
call fcn.0042e7a0
push eax
lea ecx, [ebp - 0xc0]
call fcn.00428480
call fcn.0042ea10
test al, al
je 0x43ccc1
call fcn.0042e7b0
jmp 0x43ccd9
push 2
push 0
lea ecx, [ebp - 0xc0]
call fcn.00428a90
push eax
call fcn.00445830
add esp, 0xc
mov dword [ebp - 0x2f4], eax
test eax, eax
jne 0x43ccfa
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x30c]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.00445140
add esp, 0x14
test eax, eax
je 0x43cd31
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
mov esi, dword [ebp - 0xc4]
test esi, esi
jne 0x43cd52
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
push esi
call fcn.004dc5db
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x30c]
push dword [ebp - 0x2f4]
call fcn.00445cc0
add esp, 0x18
test eax, eax
je 0x43cda3
cmp eax, 0x600
je 0x43cda3
push ebx
call fcn.004dc2b7
add esp, 4
call fcn.0042ea10
test al, al
jne 0x43cc7c
push dword [ebp - 0x2f4]
call fcn.00444f20
jmp 0x43cc79
call fcn.0042ea10
test al, al
jne 0x43cede
push dword [ebp - 0x2f4]
call fcn.00444f20
jmp 0x43cedb
call fcn.0042e7a0
push eax
lea ecx, [ebp - 0xc0]
call fcn.00428480
call fcn.0042ea10
test al, al
je 0x43cde1
call fcn.0042e7b0
jmp 0x43cdf7
push 0
lea ecx, [ebp - 0xc0]
call fcn.00428a90
push eax
call fcn.00449de0
add esp, 8
mov dword [ebp - 0x2f4], eax
test eax, eax
jne 0x43ce18
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
lea ecx, [ebp - 0x328]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x310]
movlpd qword [ebp - 0x328], xmm0
push ecx
push dword [ebp + 8]
push eax
call fcn.004495e0
add esp, 0x10
test eax, eax
je 0x43ce58
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
mov esi, dword [ebp - 0x328]
test esi, esi
jne 0x43ce79
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfc1
push esi
call fcn.004dc5db
mov ebx, eax
push ebx
push dword [ebp - 0x310]
push dword [ebp - 0x2f4]
call fcn.00449f50
add esp, 0x10
test eax, eax
je 0x43cec7
cmp eax, 0x600
je 0x43cec7
push ebx
call fcn.004dc2b7
add esp, 4
call fcn.0042ea10
test al, al
jne 0x43cc7c
push dword [ebp - 0x2f4]
call fcn.004494f0
jmp 0x43cc79
call fcn.0042ea10
test al, al
jne 0x43cede
push dword [ebp - 0x2f4]
call fcn.004494f0
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.004281f0
jmp 0x43cfb3
mov ecx, str.COLOR
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43cf26
test dx, dx
je 0x43cf22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43cf26
add eax, 4
add ecx, 4
test dx, dx
jne 0x43cf00
xor eax, eax
jmp 0x43cf2b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43cf37
lea ebx, [eax + 1]
jmp 0x43d05d
push edi
push dword [ebp + 8]
call fcn.0042e780
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [ebp - 0x30c], ebx
test ebx, ebx
je 0x43cfbb
push ebx
call fcn.0042e780
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x310], eax
push ebx
test eax, eax
jne 0x43cf73
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43cfbb
call fcn.0042e780
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x43cfbb
push esi
call fcn.004dc5db
add esp, 4
mov ebx, eax
push esi
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00489ac0
add esp, 0xc
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x43d05d
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f4], eax
cmp eax, 0xffffffff
je 0x43d03b
push 0
push eax
call ebx
mov esi, eax
test esi, esi
je 0x43d03b
push esi
mov dword [ebp - 0x318], 0
call fcn.004dc5db
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x318]
push 0
push eax
push esi
push ebx
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x318], esi
je 0x43d059
push ebx
call fcn.004dc2b7
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 - 0x10]
xor ecx, ebp
call fcn.004dbfda
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x43d03b
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x304], 1
mov dword [ebp - 0x308], 1
test edi, edi
je 0x43d0b5
mov ecx, str.COLOR
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43d0ac
test dx, dx
je 0x43d0a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43d0ac
add eax, 4
add ecx, 4
test dx, dx
jne 0x43d086
xor eax, eax
jmp 0x43d0b1
sbb eax, eax
or eax, 1
test eax, eax
je 0x43d0f4
push 4
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x304]
push eax
push esi
push ebx
call fcn.004569a0
mov esi, eax
push ebx
mov dword [ebp - 0x2f4], esi
call fcn.004dc2b7
add esp, 0x1c
test esi, esi
je 0x43d03b
mov ebx, dword [ebp - 0x308]
jmp 0x43d0f9
mov ebx, 1
push 0x2c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0048a040
mov ecx, dword [ebp - 0x304]
add esp, 0xc
mov eax, ebx
mov dword [ebp - 0x3c], 0x28
neg eax
imul ebx, ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2fc]
push 0
push 0
push eax
push 0
shl ebx, 2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], ebx
xor bl, bl
push eax
push 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2f5], bl
mov dword [ebp - 0x2fc], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x30c], eax
test eax, eax
je 0x43d03b
xor eax, eax
mov byte [ebp - 0x300], bl
mov word [ebp - 0x2ff], ax
mov byte [ebp - 0x2fd], al
test edi, edi
je 0x43d229
mov ecx, str.COLOR
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43d1ba
test dx, dx
je 0x43d1b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43d1ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x43d194
xor eax, eax
jmp 0x43d1bf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43d229
mov dword [ebp - 0x310], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
jne 0x43d1d9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push 0x10
lea ecx, [ebp - 0x310]
push ecx
push eax
call fcn.00503290
mov dword [ebp - 0x318], eax
lea edx, [ebp - 0x300]
mov cl, byte [ebp - 0x315]
add esp, 0xc
mov byte [ebp - 0x2fe], al
mov al, byte [ebp - 0x317]
mov byte [ebp - 0x2ff], al
mov al, byte [ebp - 0x316]
mov byte [ebp - 0x2fd], cl
mov byte [ebp - 0x300], al
mov dword [ebp - 0x2f4], edx
jmp 0x43d22f
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x308]
xor esi, esi
imul eax, dword [ebp - 0x304]
test eax, eax
jle 0x43d35b
mov edi, dword [ebp + 0x10]
nop dword [eax]
mov eax, dword [ebp - 0x2fc]
mov cl, byte [edx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x2fc]
cmp byte [eax + esi*4 + 3], 0xff
lea ebx, [eax + esi*4]
jae 0x43d2de
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 - 0x2f4]
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 - 0x2fc]
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 - 0x2f5], bl
mul ecx
mov eax, dword [ebp - 0x2fc]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, dword [ebp - 0x2f4]
jmp 0x43d307
mov al, byte [edx + esi*4 + 2]
mov byte [ebx], al
mov eax, dword [ebp - 0x2fc]
movzx ecx, byte [edx + esi*4 + 1]
mov bl, byte [ebp - 0x2f5]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x2fc]
movzx ecx, byte [edx + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x2fc]
cmp dword [eax + esi*4], edi
jne 0x43d33f
mov byte [eax + esi*4], 0
mov bl, 1
mov eax, dword [ebp - 0x2fc]
mov byte [ebp - 0x2f5], bl
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x2fc]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x2fc]
mov byte [eax + esi*4 + 3], 0
mov eax, dword [ebp - 0x308]
inc esi
imul eax, dword [ebp - 0x304]
cmp esi, eax
jl 0x43d250
mov edi, dword [ebp - 0x320]
test edi, edi
je 0x43d393
mov eax, str.COLOR
mov cx, word [edi]
cmp cx, word [eax]
jne 0x43d38a
test cx, cx
je 0x43d386
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x43d38a
add edi, 4
add eax, 4
test cx, cx
jne 0x43d364
xor eax, eax
jmp 0x43d38f
sbb eax, eax
or eax, 1
test eax, eax
je 0x43d39c
push edx
call fcn.00456990
add esp, 4
push 0xa0
call fcn.004dc01c
mov esi, eax
add esp, 4
mov dword [ebp - 0x320], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x43d3c6
lea ecx, [esi + 0x18]
call fcn.00428100
jmp 0x43d3c8
xor esi, esi
mov eax, dword [ebp - 0x30c]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0x2fc]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x304]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x308]
mov dword [esi + 0x10], ecx
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], 0
mov dword [esi + 8], 0
jmp 0x43d03d