Function at 0x420b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jne 0x420b86
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
je 0x420d3e
mov ebx, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test ebx, 0xffff0000
je 0x420c01
cmp ebx, edi
jne 0x420bb1
mov dword [ebp - 8], edi
jmp 0x420bf9
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x420bf0
lea eax, [edi + edi + 2]
push eax
call fcn.0046dc3d
mov ecx, dword [ebp + 0x10]
add esp, 4
push edi
mov ebx, eax
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call esi
xor edx, edx
mov word [ebx + edi*2 - 2], dx
mov dword [ebp - 8], ebx
jmp 0x420bf7
mov dword [ebp - 8], 0
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x420c65
cmp eax, edi
jne 0x420c14
mov dword [ebp - 4], edi
jmp 0x420c5d
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x420c56
lea ecx, [edi + edi + 2]
push ecx
call fcn.0046dc3d
mov edx, dword [ebp + 0xc]
add esp, 4
push edi
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call esi
xor eax, eax
mov word [ebx + edi*2 - 2], ax
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
jmp 0x420c5d
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov eax, ecx
mov edi, dword [ebp - 0xc]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call fcn.0046dc03
mov eax, dword [ebp - 8]
add esp, 4
push eax
call fcn.0046dc03
add esp, 4
test esi, esi
je 0x420d3e
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x420d3e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x420d3e
mov ecx, dword [ebp - 0xc]
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [ebp + 0x14], 0
mov ebx, eax
jne 0x420d26
cmp ebx, 2
jb 0x420d06
test bl, 1
jne 0x420d06
cmp byte [edi], 0xff
jne 0x420d06
cmp byte [edi + 1], 0xfe
jne 0x420d06
mov esi, dword [ebp + 8]
mov edx, ebx
shr edx, 1
push edx
push edi
call fcn.0041ef10
mov edx, dword [ebp - 8]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ebx
push edi
call fcn.0041eed0
mov edx, dword [ebp - 8]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edi, ebx
call fcn.0041fc00
test eax, eax
jne 0x420d47
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp dword [eax - 8], 7
jne 0x420d58
mov eax, dword [eax - 0x10]
add eax, 0x18
jmp 0x420d5a
xor eax, eax
mov ecx, dword [ebp - 4]
push ebx
push ecx
push eax
call fcn.00478aa0
mov edx, dword [ebp - 8]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret