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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5535b5
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x5a0800]
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 esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x318], esi
test esi, esi
jne 0x42eb5d
call fcn.00415670
push eax
lea ecx, [ebp - 0xc0]
call fcn.00411b10
mov dword [ebp - 4], edi
call fcn.00415680
mov ecx, eax
call fcn.00412970
test al, al
je 0x42ea50
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
call fcn.00412090
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
call fcn.00412720
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2f4], ebx
cmp ebx, 0xffffffff
jne 0x42e9bd
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.00411c90
jmp 0x42ec37
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x42e9eb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.00411c90
jmp 0x42ec37
push edi
mov dword [ebp - 0x314], 0
call fcn.004e7709
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x314]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2f4]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
cmp dword [ebp - 0x314], edi
je 0x42eb46
push ebx
call fcn.004e7712
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00411c90
jmp 0x42ec37
call fcn.00415680
push eax
lea ecx, [ebp - 0xc0]
call fcn.00412000
call fcn.00415ba0
test al, al
je 0x42ea71
call fcn.00415690
jmp 0x42ea89
push 2
push 0
lea ecx, [ebp - 0xc0]
call fcn.00412720
push eax
call fcn.0042fff0
add esp, 0xc
mov dword [ebp - 0x2f4], eax
test eax, eax
je 0x42e9a6
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x310]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.0042f5c0
add esp, 0x14
test eax, eax
jne 0x42e9a6
mov edi, dword [ebp - 0xc4]
test edi, edi
je 0x42e9a6
push edi
call fcn.004e7709
push 3
push edi
mov ebx, eax
push ebx
push dword [ebp - 0x310]
push dword [ebp - 0x2f4]
call fcn.00430440
add esp, 0x18
test eax, eax
je 0x42eb2f
cmp eax, 0x600
je 0x42eb2f
push ebx
call fcn.004e7712
add esp, 4
call fcn.00415ba0
test al, al
jne 0x42e9a6
push dword [ebp - 0x2f4]
call fcn.0042f350
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00411c90
jmp 0x42ec37
call fcn.00415ba0
test al, al
jne 0x42eb46
push dword [ebp - 0x2f4]
call fcn.0042f350
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.00411c90
jmp 0x42ec2f
mov ecx, 0x55ee84
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42eb8a
test dx, dx
je 0x42eb86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42eb8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x42eb64
xor eax, eax
jmp 0x42eb8f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42ebb3
mov ebx, 1
mov eax, ebx
mov dword [ebp - 0x304], ebx
mov dword [ebp - 0x308], eax
xor eax, eax
mov dword [ebp - 0x2f4], eax
jmp 0x42ed03
push esi
push dword [ebp + 8]
call fcn.00415660
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [ebp - 0x300], ebx
test ebx, ebx
je 0x42ec37
push ebx
call fcn.00415660
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x310], eax
push ebx
test eax, eax
jne 0x42ebef
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42ec37
call fcn.00415660
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x42ec37
push edi
call fcn.004e7709
add esp, 4
mov ebx, eax
push edi
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004e9540
add esp, 0xc
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x42ece2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2f4], ebx
cmp ebx, 0xffffffff
je 0x42ec75
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x42ec93
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004e6d11
mov esp, ebp
pop ebp
ret
push edi
mov dword [ebp - 0x300], 0
call fcn.004e7709
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x300]
push 0
push eax
push edi
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 - 0x300], edi
je 0x42ecde
push ebx
call fcn.004e7712
add esp, 4
jmp 0x42ec75
test ebx, ebx
je 0x42ec75
xor eax, eax
mov dword [ebp - 0x304], 1
mov dword [ebp - 0x2f4], eax
mov eax, 1
mov dword [ebp - 0x308], eax
test esi, esi
je 0x42ed3f
mov ecx, 0x55ee84
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42ed36
test dx, dx
je 0x42ed32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42ed36
add eax, 4
add ecx, 4
test dx, dx
jne 0x42ed10
xor eax, eax
jmp 0x42ed3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x42ed82
push 4
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x304]
push eax
push edi
push ebx
call fcn.00449d40
push ebx
mov dword [ebp - 0x2f4], eax
call fcn.004e7712
mov ebx, dword [ebp - 0x2f4]
add esp, 0x1c
test ebx, ebx
je 0x42ec75
mov ecx, dword [ebp - 0x308]
jmp 0x42ed89
mov ecx, 1
xor ebx, ebx
mov edx, dword [ebp - 0x304]
mov eax, ecx
push 0
neg eax
imul ecx, edx
push 0
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x2fc]
movlpd qword [ebp - 0x24], xmm0
push eax
push 0
lea eax, [ebp - 0x3c]
shl ecx, 2
push eax
push 0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x2f5], 0
mov dword [ebp - 0x2fc], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x314], eax
test eax, eax
je 0x42ec75
mov dword [ebp - 0x30c], 0
test esi, esi
je 0x42eea8
mov edx, 0x55ee84
mov ecx, esi
nop dword [eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42ee46
test ax, ax
je 0x42ee42
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42ee46
add ecx, 4
add edx, 4
test ax, ax
jne 0x42ee20
xor eax, eax
jmp 0x42ee4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42eea8
mov dword [ebp - 0x310], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
jne 0x42ee65
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push 0x10
lea ecx, [ebp - 0x310]
push ecx
push eax
call fcn.005148df
mov ecx, eax
mov byte [ebp - 0x30a], al
shr ecx, 0x18
lea ebx, [ebp - 0x30c]
mov byte [ebp - 0x309], cl
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x2f4], ebx
shr ecx, 8
shr eax, 0x10
mov byte [ebp - 0x30b], cl
mov byte [ebp - 0x30c], al
mov eax, dword [ebp - 0x308]
xor edi, edi
imul eax, dword [ebp - 0x304]
test eax, eax
jle 0x42efd3
mov esi, dword [ebp + 0x10]
lea edx, [ebx + 3]
mov dword [ebp - 0x300], edx
nop dword [eax + eax]
mov eax, dword [ebp - 0x2fc]
mov cl, byte [edx + edi*4]
mov byte [eax + edi*4 + 3], cl
mov eax, dword [ebp - 0x2fc]
cmp byte [eax + edi*4 + 3], 0xff
lea ebx, [eax + edi*4]
jae 0x42ef56
movzx eax, byte [edx + edi*4 - 1]
movzx ecx, byte [edx + edi*4]
imul ecx, eax
mov eax, 0x80808081
mov byte [ebp - 0x2f5], 1
mul ecx
shr edx, 7
mov byte [ebx], dl
mov ebx, dword [ebp - 0x300]
movzx eax, byte [ebx + edi*4 - 2]
movzx ecx, byte [ebx + edi*4]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x2fc]
shr edx, 7
mov byte [eax + edi*4 + 1], dl
movzx eax, byte [ebx + edi*4 - 3]
movzx ecx, byte [ebx + edi*4]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x2fc]
shr edx, 7
mov byte [eax + edi*4 + 2], dl
mov edx, ebx
jmp 0x42ef7a
mov al, byte [edx + edi*4 - 1]
mov byte [ebx], al
mov eax, dword [ebp - 0x2fc]
movzx ecx, byte [edx + edi*4 - 2]
mov byte [eax + edi*4 + 1], cl
mov eax, dword [ebp - 0x2fc]
movzx ecx, byte [edx + edi*4 - 3]
mov byte [eax + edi*4 + 2], cl
mov eax, dword [ebp - 0x2fc]
cmp dword [eax + edi*4], esi
jne 0x42efb1
mov byte [eax + edi*4], 0
mov eax, dword [ebp - 0x2fc]
mov byte [ebp - 0x2f5], 1
mov byte [eax + edi*4 + 1], 0
mov eax, dword [ebp - 0x2fc]
mov byte [eax + edi*4 + 2], 0
mov eax, dword [ebp - 0x2fc]
mov byte [eax + edi*4 + 3], 0
mov eax, dword [ebp - 0x308]
inc edi
imul eax, dword [ebp - 0x304]
cmp edi, eax
jl 0x42eed0
mov esi, dword [ebp - 0x318]
mov ebx, dword [ebp - 0x2f4]
test esi, esi
je 0x42f00f
mov eax, 0x55ee84
nop dword [eax]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x42f006
test cx, cx
je 0x42f002
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x42f006
add esi, 4
add eax, 4
test cx, cx
jne 0x42efe0
xor eax, eax
jmp 0x42f00b
sbb eax, eax
or eax, 1
test eax, eax
je 0x42f018
push ebx
call fcn.00449ba0
add esp, 4
push 0xa0
call fcn.004e6c7e
mov esi, eax
add esp, 4
mov dword [ebp - 0x318], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x42f042
lea ecx, [esi + 0x18]
call fcn.00411b70
jmp 0x42f044
xor esi, esi
mov eax, dword [ebp - 0x314]
mov dword [esi], eax
mov ecx, dword [ebp - 0x2fc]
mov al, byte [ebp - 0x2f5]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x304]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x308]
mov byte [esi + 0x14], al
mov eax, esi
mov dword [esi + 0x10], ecx
mov byte [esi + 0x15], 0
mov dword [esi + 8], 0
jmp 0x42ec77