Function at 0x420c70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4370f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x43d924
push str.208
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.temp.dat
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x420bc0
push 0x446bcc
call fcn.0040b73b
mov ecx, dword [0x446c10]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [0x4463c4]
push 0
push 0
push 0xffffffffffffffff
push str.temp.dat
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x420d70
push esi
push edi
push 0xffffffffffffffff
push str.temp.dat
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x420d70
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [ebp - 0x20]
call fcn.00403499
xor edi, edi
test edi, edi
mov dword [0x446c10], edi
jne 0x420d84
push 0x8007000e
call fcn.00402f39
push str.temp.dat
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
jne 0x420d9f
mov eax, 0x80640001
jmp 0x4210b9
push 0x43d908
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x420f15
mov dword [ebp - 0x10], edi
lea edx, [ebp - 0x10]
push edx
push 0x43a188
push 0x43d874
mov dword [ebp - 4], edi
call eax
cmp eax, edi
jl 0x420f01
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
lea ebx, [esi + 0x50]
push ebx
push 0x43d894
push edi
push eax
call dword [edx + 0xc]
cmp eax, edi
jl 0x420f01
add esi, 0x4c
push esi
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
push edi
push 1
push 0x43d8a4
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
cmp eax, edi
jl 0x420e3d
mov eax, dword [ebx]
mov esi, dword [esi]
push 1
push edi
push 3
push eax
push 0x43d8b4
push esi
call dword [sym.imp.ole32.dll_CoMarshalInterface]
mov esi, eax
jmp 0x420eec
call dword [0x4463c4]
push str.temp.dat
mov esi, eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.0042eb40
mov eax, esp
push esi
push edi
push str.temp.dat
mov esi, eax
call fcn.004034ae
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov esi, eax
test esi, esi
jge 0x420ebe
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x420e92
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420ea3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x420eb7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
jmp 0x4210b9
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
push 1
push 0
push 3
push eax
add ecx, 0x4c
mov ecx, dword [ecx]
push 0x43d8b4
push ecx
call dword [sym.imp.ole32.dll_CoMarshalInterface]
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x420eea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
cmp esi, edi
jge 0x420f1f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x420f01
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x420f15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80640002
jmp 0x4210b9
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebx]
lea esi, [ebp - 0x14]
mov dword [eax + 0x5c], edx
call fcn.00422830
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add esi, 0x30
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x420f9a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x420f67
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420f78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42105a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x80640003
jmp 0x4210b9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp + 0xc]
push edx
push 0
push esi
push 0
push 0xfffffffffffffffb
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x421024
mov edi, dword [ebx]
lea esi, [ebp - 0x1c]
call fcn.00422920
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
test eax, eax
jl 0x421013
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
add ecx, 0x30
push ecx
push 0
push 0xfffffffffffffffc
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x421013
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
push eax
mov eax, esi
mov dword [esi + 0x90], 1
call fcn.004228c0
test eax, eax
jge 0x421061
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421024
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421035
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421046
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42105a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80640003
jmp 0x4210b9
mov ebx, dword [ebx]
add esi, 0x80
mov eax, ebx
call fcn.00422800
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421081
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421092
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4210a3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4210b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8