Function at 0x420300
Capabilities:
Create directory
Extract resource via kernel32 functions
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c61f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
mov esi, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
mov dword [esp + 0x8c], ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.0041feb0
add esp, 4
test eax, eax
jne 0x42038a
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x420367
mov edx, dword [esp + 0x34]
push edx
call fcn.004d9334
add esp, 4
mov dword [esp + 0x48], esi
xor eax, eax
pop esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
pop ebx
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret
cmp dword [esp + 0x44], ebx
jne 0x4203d2
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x4203af
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004d9334
add esp, 4
mov dword [esp + 0x48], esi
xor edx, edx
pop esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
pop ebx
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret
push 0x5deffc
push 0x96
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x420411
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0040d5d0
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebx
jne 0x42044d
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0040d5d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, ebx
je 0x42067e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x42067e
push str._searchplugins
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x94], 1
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x4204a7
mov eax, dword [eax + 4]
jmp 0x4204aa
add eax, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [esp + 0x94], bl
lea ecx, [esp + 0x54]
call fcn.0040d5d0
push str._searchpluginsmailru.xml
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x94], 2
cmp dword [eax + 0x18], edi
jb 0x4204eb
mov eax, dword [eax + 4]
jmp 0x4204ee
add eax, 4
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x24], edi
mov byte [esp + 0x94], 4
lea ecx, [esp + 0x54]
call fcn.0040d5d0
cmp edi, 0xffffffff
je 0x420530
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [esp + 0x9c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp]
cmp eax, ebx
je 0x420555
cmp eax, ecx
je 0x42055a
call fcn.0051d2bd
cmp dword [esp + 0x2c], esi
je 0x42065d
push str._searchplugins
lea ecx, [esp + 0x2c]
call fcn.0041d940
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x94], 5
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x420597
mov eax, dword [eax + 4]
jmp 0x42059a
add eax, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [esp + 0x94], 4
lea ecx, [esp + 0x54]
call fcn.0040d5d0
push str._searchpluginsmailru.xml
lea ecx, [esp + 0x2c]
call fcn.0041d940
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x94], 6
cmp dword [eax + 0x18], esi
jb 0x4205e1
mov eax, dword [eax + 4]
jmp 0x4205e4
add eax, 4
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x94], 8
lea ecx, [esp + 0x70]
call fcn.0040d5d0
cmp esi, 0xffffffff
je 0x42062e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x94], 4
cmp esi, ebx
je 0x420645
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call fcn.0041df80
mov eax, dword [esp + 0x28]
jmp 0x420547
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [esp + 0x94], bl
cmp edi, ebx
je 0x42067e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0040d5d0
mov ecx, dword [esp + 0x8c]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret