Function at 0x422880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x477a60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov edi, dword [ebp + 0x410]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp], esi
mov byte [ebp - 4], 1
cmp edi, esi
je 0x422992
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0046f360
mov esi, eax
add eax, 0x80000000
adc edx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], edx
jne 0x42298a
cmp eax, 0xffffffff
ja 0x42298a
cmp esi, 0x400
jg 0x422939
push esi
call fcn.00421790
add esp, 4
test al, al
je 0x422939
mov eax, esi
call fcn.00472bc0
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x422965
or eax, 0xffffffff
sub eax, esi
cmp eax, 8
jb 0x422a5c
lea eax, [esi + 8]
push eax
call fcn.0045ebf7
add esp, 4
test eax, eax
je 0x42298a
mov ebx, eax
mov dword [eax], 0
mov dword [ebp - 0x1c], ebx
lea esi, [eax + 8]
test esi, esi
je 0x42298a
mov ecx, dword [ebp - 0x24]
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42298c
xor eax, eax
test eax, eax
jne 0x4229c1
xor esi, esi
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4229a2
lea eax, [ebp]
call fcn.0042a520
cmp ebx, esi
je 0x4229b7
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0045ecc1
add esp, 4
cmp ebx, esi
jne 0x4229a6
mov eax, 0x8007000e
jmp 0x422b03
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x4229e1
call fcn.00421a70
mov esi, eax
jmp 0x422adc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x422a00
call fcn.00421a70
jmp 0x422ad3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x422a19
call fcn.00421a70
jmp 0x422ad3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x18], esi
cmp eax, esi
jae 0x422a4f
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x422a3d
lea eax, [ebp]
call fcn.0042a520
lea esi, [ebp - 0x1c]
call fcn.00429e50
mov eax, 0x8007000e
jmp 0x422b03
xor ecx, ecx
mov byte [ebp - 4], 2
ja 0x422a5c
cmp eax, 0xffffffff
jbe 0x422a66
push 0x80070057
call fcn.004218d0
cmp eax, 0x400
jbe 0x422a90
lea ecx, [ebp]
push ecx
call fcn.0042a810
jmp 0x422a96
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp]
test eax, eax
jne 0x422aab
mov esi, 0x8007000e
jmp 0x422ad5
mov ecx, dword [ebp - 0x14]
push esi
push eax
mov eax, esi
call fcn.004219b0
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x418]
add esp, 8
mov byte [eax + esi], 0
push ecx
mov ecx, dword [ebp]
lea edx, [ebp - 0x2c]
call fcn.00423cf0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x422aec
lea eax, [ebp]
call fcn.0042a520
test ebx, ebx
je 0x422b01
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0045ecc1
add esp, 4
test ebx, ebx
jne 0x422af0
mov eax, esi
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0045c0ce
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc