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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583949
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
push esi
push edi
lea edi, [ebp - 0x3bc]
mov ecx, 0xec
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5ddc34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
jne 0x433c07
call fcn.00406810
push eax
lea ecx, [ebp - 0xa0]
call fcn.00403b60
mov dword [ebp - 4], 0
call fcn.00406820
mov ecx, eax
call fcn.00403e40
movzx eax, al
test eax, eax
je 0x433a58
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00404580
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xa0]
call fcn.00403ec0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0xffffffff
jne 0x433978
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
mov esi, esp
push 0
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4339b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.004bcb10
add esp, 4
mov dword [ebp - 0x394], eax
mov ecx, dword [ebp - 0x394]
mov dword [ebp - 0x14], ecx
mov esi, esp
push 0
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004f4cf0
mov esi, esp
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f4cf0
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0x18]
je 0x433a53
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x398], edx
mov eax, dword [ebp - 0x398]
push eax
call fcn.004f9cb0
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
jmp 0x433bf0
call fcn.00406820
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404540
mov dword [ebp - 0xb8], 0
call fcn.00406830
movzx ecx, al
test ecx, ecx
je 0x433a8c
call fcn.00406840
mov dword [ebp - 0xb8], eax
jmp 0x433aaa
push 2
push 0
lea ecx, [ebp - 0xa0]
call fcn.00403ec0
push eax
call fcn.00425ef0
add esp, 0xc
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x433aca
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
lea edx, [ebp - 0x2ec]
push edx
lea eax, [ebp - 0x2f8]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00426270
add esp, 0x14
test eax, eax
je 0x433b08
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x433b2e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004bcb10
add esp, 4
mov dword [ebp - 0x39c], eax
mov edx, dword [ebp - 0x39c]
mov dword [ebp - 0x14], edx
push 3
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004263e0
add esp, 0x14
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
je 0x433bd5
cmp dword [ebp - 0x300], 0x600
je 0x433bd5
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3a0], ecx
mov edx, dword [ebp - 0x3a0]
push edx
call fcn.004f9cb0
add esp, 4
mov dword [ebp - 0x14], 0
call fcn.00406830
movzx eax, al
test eax, eax
jne 0x433bbe
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00426470
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433d05
call fcn.00406830
movzx edx, al
test edx, edx
jne 0x433bf0
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00426470
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00403bb0
jmp 0x433cfd
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004067f0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x304], eax
cmp dword [ebp - 0x304], 0
jne 0x433c38
jmp 0x433d05
mov esi, esp
mov eax, dword [ebp - 0x304]
push eax
call fcn.004067f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
jne 0x433c7e
mov esi, esp
mov ecx, dword [ebp - 0x304]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.004f4cf0
jmp 0x433d05
mov esi, esp
mov edx, dword [ebp - 0x304]
push edx
call fcn.004067f0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x433ca5
jmp 0x433d05
mov eax, dword [ebp - 0x18]
push eax
call fcn.004bcb10
add esp, 4
mov dword [ebp - 0x3a4], eax
mov ecx, dword [ebp - 0x3a4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
push edx
mov esi, esp
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.004f4cf0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004f57f0
add esp, 0xc
mov esi, esp
mov edx, dword [ebp - 0x304]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, esp
call fcn.004f4cf0
xor eax, eax
jne 0x4338dd
cmp dword [ebp - 0x14], 0
jne 0x433e01
mov esi, esp
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]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0xffffffff
jne 0x433d48
jmp 0x433e01
mov esi, esp
push 0
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x433d6e
jmp 0x433e01
mov dword [ebp - 0x314], 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.004bcb10
add esp, 4
mov dword [ebp - 0x3a8], eax
mov ecx, dword [ebp - 0x3a8]
mov dword [ebp - 0x14], ecx
mov esi, esp
push 0
lea edx, [ebp - 0x314]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004f4cf0
mov esi, esp
mov eax, dword [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f4cf0
mov ecx, dword [ebp - 0x314]
cmp ecx, dword [ebp - 0x18]
je 0x433dfa
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x3ac], edx
mov eax, dword [ebp - 0x3ac]
push eax
call fcn.004f9cb0
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x433e01
cmp dword [ebp - 0x14], 0
jne 0x433e0e
xor eax, eax
jmp 0x4341ca
mov dword [ebp - 0x31c], 0
push 4
lea ecx, [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004686e0
add esp, 0x18
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3b0], eax
mov ecx, dword [ebp - 0x3b0]
push ecx
call fcn.004f9cb0
add esp, 4
cmp dword [ebp - 0x31c], 0
jne 0x433e6d
xor eax, eax
jmp 0x4341ca
push 0x2c
push 0
lea edx, [ebp - 0x370]
push edx
call fcn.004f6010
add esp, 0xc
mov dword [ebp - 0x370], 0x28
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x330]
neg ecx
mov dword [ebp - 0x368], ecx
mov edx, 1
mov word [ebp - 0x364], dx
mov eax, 0x20
mov word [ebp - 0x362], ax
mov dword [ebp - 0x360], 0
mov ecx, dword [ebp - 0x324]
imul ecx, dword [ebp - 0x330]
shl ecx, 2
mov dword [ebp - 0x35c], ecx
mov byte [ebp - 0x375], 0
mov dword [ebp - 0x380], 0
mov esi, esp
push 0
push 0
lea edx, [ebp - 0x380]
push edx
push 0
lea eax, [ebp - 0x370]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
jne 0x433f28
xor eax, eax
jmp 0x4341ca
mov dword [ebp - 0x38c], 0
jmp 0x433f43
mov ecx, dword [ebp - 0x38c]
add ecx, 1
mov dword [ebp - 0x38c], ecx
mov edx, dword [ebp - 0x324]
imul edx, dword [ebp - 0x330]
cmp dword [ebp - 0x38c], edx
jge 0x43411b
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x380]
mov edx, dword [ebp - 0x38c]
mov esi, dword [ebp - 0x31c]
mov dl, byte [esi + edx*4 + 3]
mov byte [ecx + eax*4 + 3], dl
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x380]
movzx edx, byte [ecx + eax*4 + 3]
cmp edx, 0xff
jge 0x43405a
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x31c]
movzx eax, byte [ecx + eax*4 + 2]
mov edx, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x31c]
movzx edx, byte [ecx + edx*4 + 3]
imul eax, edx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x380]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x31c]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x38c]
mov edx, dword [ebp - 0x31c]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x380]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x31c]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x38c]
mov edx, dword [ebp - 0x31c]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x380]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x375], 1
jmp 0x4340b8
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x380]
mov ecx, dword [ebp - 0x38c]
mov esi, dword [ebp - 0x31c]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x380]
mov ecx, dword [ebp - 0x38c]
mov esi, dword [ebp - 0x31c]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x380]
mov ecx, dword [ebp - 0x38c]
mov esi, dword [ebp - 0x31c]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x380]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x10]
jne 0x434116
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x380]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x38c]
mov edx, dword [ebp - 0x380]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x380]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x380]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x375], 1
jmp 0x433f34
mov ecx, dword [ebp - 0x31c]
push ecx
call fcn.004686c0
add esp, 4
push 0x98
call fcn.004f4f00
add esp, 4
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x3b8], 0
je 0x434160
mov ecx, dword [ebp - 0x3b8]
call fcn.0040edb0
mov dword [ebp - 0x3bc], eax
jmp 0x43416a
mov dword [ebp - 0x3bc], 0
mov edx, dword [ebp - 0x3bc]
mov dword [ebp - 0x3b4], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3b4]
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x390]
mov edx, dword [ebp - 0x388]
mov dword [ecx], edx
mov eax, dword [ebp - 0x390]
mov ecx, dword [ebp - 0x324]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x390]
mov eax, dword [ebp - 0x330]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x390]
mov dl, byte [ebp - 0x375]
mov byte [ecx + 0xc], dl
mov eax, dword [ebp - 0x390]
push edx
mov ecx, ebp
push eax
lea edx, [0x434204]
call fcn.004f4c90
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4d70
add esp, 0x3bc
cmp ebp, esp
call fcn.004f4cf0
mov esp, ebp
pop ebp
ret