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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c70b5
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
cmp dword [ebp + 0xc], 0
jne 0x4343c8
call fcn.0040f0b0
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041b5f0
mov dword [ebp - 4], 0
call fcn.0040f0c0
mov ecx, eax
call fcn.0041c340
movzx eax, al
test eax, eax
je 0x434201
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.0041b950
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
call fcn.0041c020
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0xffffffff
jne 0x434102
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
push 0
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x434144
mov eax, dword [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
mov dword [ebp - 0x334], 0
mov ecx, dword [ebp - 0x2f8]
add ecx, 1
push ecx
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x34c], eax
mov edx, dword [ebp - 0x34c]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2fc]
add eax, dword [ebp - 0x2f8]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x334]
cmp eax, dword [ebp - 0x2f8]
je 0x4341fc
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x350]
push edx
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
jmp 0x4343b1
call fcn.0040f0c0
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041b920
mov dword [ebp - 0x310], 0
call fcn.0040f3f0
movzx eax, al
test eax, eax
je 0x434235
call fcn.0040f0d0
mov dword [ebp - 0x310], eax
jmp 0x434255
call fcn.0040f0e0
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041c020
push eax
call fcn.0041ff50
add esp, 8
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x434275
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
lea ecx, [ebp - 0x2f0]
push ecx
lea edx, [ebp - 0x358]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x310]
push ecx
call fcn.0041f220
add esp, 0x14
test eax, eax
je 0x4342b3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x2f8], edx
cmp dword [ebp - 0x2f8], 0
jne 0x4342df
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x2fc], ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x358]
push ecx
mov edx, dword [ebp - 0x310]
push edx
call fcn.00420880
add esp, 0x10
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
je 0x434396
cmp dword [ebp - 0x344], 0x600
je 0x434396
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
push ecx
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2fc], 0
call fcn.0040f3f0
movzx edx, al
test edx, edx
jne 0x43437f
mov eax, dword [ebp - 0x310]
push eax
call fcn.0041eb80
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344c3
call fcn.0040f3f0
movzx ecx, al
test ecx, ecx
jne 0x4343b1
mov edx, dword [ebp - 0x310]
push edx
call fcn.0041eb80
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.0041b780
jmp 0x4344bb
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.004afa0a
add esp, 8
test eax, eax
jne 0x4343ec
mov dword [ebp - 0x2fc], 1
jmp 0x4344bb
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f090
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jne 0x434414
jmp 0x4344c3
mov eax, dword [ebp - 0x318]
push eax
call fcn.0040f090
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x434445
mov ecx, dword [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4344c3
mov edx, dword [ebp - 0x318]
push edx
call fcn.0040f090
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x434469
jmp 0x4344c3
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
mov dword [ebp - 0x2fc], ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x2fc]
push ecx
call fcn.004a02a0
add esp, 0xc
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jne 0x434070
cmp dword [ebp - 0x2fc], 0
jne 0x4345d8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0xffffffff
jne 0x434500
jmp 0x4345d8
push 0
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x434530
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4345d8
mov dword [ebp - 0x348], 0
mov ecx, dword [ebp - 0x2f8]
add ecx, 1
push ecx
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x364], eax
mov edx, dword [ebp - 0x364]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2fc]
add eax, dword [ebp - 0x2f8]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x348]
push ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x31c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x2f8]
je 0x4345d1
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x368], ecx
mov edx, dword [ebp - 0x368]
push edx
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2fc], 0
jmp 0x4345d8
cmp dword [ebp - 0x2fc], 0
jne 0x4345e8
xor eax, eax
jmp 0x434b14
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x328], 1
cmp dword [ebp + 0xc], 0
je 0x434621
push str.COLOR
mov eax, dword [ebp + 0xc]
push eax
call fcn.004afa0a
add esp, 8
test eax, eax
je 0x43467f
push 4
lea ecx, [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x2fc]
push edx
call fcn.0044f7e0
add esp, 0x18
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
push ecx
call fcn.0040b779
add esp, 4
cmp dword [ebp - 0x300], 0
jne 0x43467f
xor eax, eax
jmp 0x434b14
push 0x2c
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.004a0100
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x328]
neg ecx
mov dword [ebp - 0x34], ecx
mov edx, 1
mov word [ebp - 0x30], dx
mov eax, 0x20
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x324]
imul ecx, dword [ebp - 0x328]
shl ecx, 2
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x305], 0
mov dword [ebp - 0x304], 0
push 0
push 0
lea edx, [ebp - 0x304]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
jne 0x434716
xor eax, eax
jmp 0x434b14
xor ecx, ecx
mov dword [ebp - 0x320], ecx
cmp dword [ebp + 0xc], 0
je 0x434829
push str.COLOR
mov edx, dword [ebp + 0xc]
push edx
call fcn.004afa0a
add esp, 8
test eax, eax
jne 0x434829
mov dword [ebp - 0x370], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
movzx edx, word [ecx]
cmp edx, 0x23
jne 0x434775
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x32c], eax
push 0x10
lea ecx, [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x32c]
push edx
call fcn.004afe26
add esp, 0xc
mov dword [ebp - 0x374], eax
lea eax, [ebp - 0x374]
mov dword [ebp - 0x300], eax
mov ecx, 1
imul edx, ecx, 3
mov eax, 1
imul ecx, eax, 3
mov eax, dword [ebp - 0x300]
mov dl, byte [eax + edx]
mov byte [ebp + ecx - 0x320], dl
mov eax, 1
imul ecx, eax, 0
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 0x300]
mov cl, byte [eax + ecx]
mov byte [ebp + edx - 0x320], cl
mov edx, 1
shl edx, 0
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x300]
mov dl, byte [ecx + edx]
mov byte [ebp + eax - 0x320], dl
mov eax, 1
shl eax, 1
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp - 0x300]
mov al, byte [ecx + eax]
mov byte [ebp + edx - 0x320], al
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x300], ecx
mov dword [ebp - 0x2f4], 0
jmp 0x434844
mov edx, dword [ebp - 0x2f4]
add edx, 1
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x324]
imul eax, dword [ebp - 0x328]
cmp dword [ebp - 0x2f4], eax
jge 0x434a1b
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x300]
mov al, byte [esi + eax*4 + 3]
mov byte [edx + ecx*4 + 3], al
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x304]
movzx eax, byte [edx + ecx*4 + 3]
cmp eax, 0xff
jge 0x43495a
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
movzx eax, byte [edx + ecx*4 + 2]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x304]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x304]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x304]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x305], 1
jmp 0x4349b8
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x300]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x300]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x300]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x434a16
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x304]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x304]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x304]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x304]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x305], 1
jmp 0x434835
cmp dword [ebp + 0xc], 0
je 0x434a36
push str.COLOR
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004afa0a
add esp, 8
test eax, eax
je 0x434a45
mov edx, dword [ebp - 0x300]
push edx
call fcn.0044f7c0
add esp, 4
push 0xa0
call fcn.0040b97b
add esp, 4
mov dword [ebp - 0x330], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x330], 0
je 0x434a84
mov ecx, dword [ebp - 0x330]
add ecx, 0x18
call fcn.0041b670
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x338], eax
jmp 0x434a8e
mov dword [ebp - 0x338], 0
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x378], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x378]
mov dword [ebp - 0x30c], edx
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x33c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x304]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x30c]
mov edx, dword [ebp - 0x324]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x328]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x30c]
mov al, byte [ebp - 0x305]
mov byte [edx + 0x14], al
mov ecx, dword [ebp - 0x30c]
mov byte [ecx + 0x15], 0
mov edx, dword [ebp - 0x30c]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b76b
mov esp, ebp
pop ebp
ret