Function at 0x431870
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get common file path
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54e291
mov eax, dword fs:[0]
push eax
mov eax, 0x10018
call fcn.005259e0
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x10014], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
xor eax, esp
push eax
lea eax, [esp + 0x1002c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1003c]
mov eax, dword [eax + 8]
xor ebx, ebx
cmp eax, ebx
je 0x431af8
test dword [eax + 0x80], 0x20000
je 0x431af8
push 0x564f30
lea ecx, [esp + 0x1c]
call fcn.00404670
lea ecx, [esp + 0x28]
push ecx
push 0x7fff
mov dword [esp + 0x1003c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431900
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x26], 0x5c
jne 0x431934
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431920
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x26], bx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0x28]
push edx
call edi
cmp eax, 0xffffffff
jne 0x431952
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.RtkBtMnt.exe
lea ecx, [esp + 0x2c]
push 0x7fff
push ecx
call fcn.005221e4
add esp, 0xc
push ebx
push str.ADRExtracted
push str.General
mov ecx, 0x5b9548
call fcn.00507bbf
mov esi, eax
cmp esi, ebx
jne 0x43199a
push 1
push str.ADRExtracted
push str.General
mov ecx, 0x5b9548
call fcn.00507c28
xor edx, edx
cmp esi, ebx
sete dl
lea eax, [esp + 0x28]
push eax
mov esi, edx
call edi
cmp eax, 0xffffffff
jne 0x4319b4
mov esi, 1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x567d6c
call fcn.00404670
push ecx
mov byte [esp + 0x10040], 1
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00404670
mov byte [esp + 0x10040], bl
call fcn.00423f90
add esp, 0xc
cmp esi, ebx
je 0x431a93
call fcn.00503137
mov eax, dword [eax + 8]
push str.Binary
push 0x143
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x431a24
lea ecx, [esp + 0x18]
call fcn.00401640
jmp 0x431af8
call fcn.00503137
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x431a16
call fcn.00503137
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x431a16
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431a16
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebp
push edi
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x564f30
call fcn.00404670
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x10044], 2
call fcn.00404670
mov byte [esp + 0x10040], bl
call fcn.00423f90
mov dword [esp + 0x10040], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431af8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1002c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10014]
xor ecx, esp
call fcn.0052151a
add esp, 0x10024
ret 4