Function at 0x10006b00
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1004dfe1
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
push 0x103
xor ebx, ebx
lea eax, [esp + 0x45]
push ebx
push eax
mov byte [esp + 0x4c], 0
call fcn.10037cf0
mov eax, dword [0x1006c558]
add esp, 0xc
cmp dword [0x1006c56c], 0x10
mov dword [esp + 0x20], ebx
jae 0x10006b6c
mov eax, 0x1006c558
push eax
lea ecx, [esp + 0x18]
call fcn.10002ca0
push 0xc
push 0x10056f64
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], ebx
call fcn.10001ed0
call fcn.10025867
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10006ba7
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x150], 1
cmp byte [0x1006b339], 0
jne 0x10006c06
push 0x17
push str.System32EdpEDiskEx.dll
lea ecx, [esp + 0x1c]
call fcn.10002b90
push 0x104
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push 0x10056f8c
push ecx
call fcn.100027b0
add esp, 0x10
jmp 0x10006c14
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call fcn.1000bb20
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x10068cdc], eax
cmp eax, ebx
je 0x10006c9f
push str.EDPEDISK:Remote_Login_Used__n
push ebx
push 0x753
push str.CEdpEDiskCtrlInterface::CopyEdpEDiskDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
mov byte [esp + 0x160], 0
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006c6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x150], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006c98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x10006e95
call fcn.10025867
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10006cb9
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x150], 2
mov ebp, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x20]
push str.EDPEDISK.EXE:__s_Free_DLL_File
push ecx
call fcn.100027b0
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x10006d03
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.10002a10
mov edi, dword [esp + 0x1c]
push edi
push ebx
push 0x75a
push str.CEdpEDiskCtrlInterface::CopyEdpEDiskDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x1f01ff
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006d8a
push str.EDPEDISK.EXE:Free_DLL_File_Fail_
push 4
push 0x761
push str.CEdpEDiskCtrlInterface::CopyEdpEDiskDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [esp + 0x150], 1
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x150], 0
lea eax, [ebp - 0x10]
jmp 0x10006c54
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x1c
lea ecx, [esp + 0x28]
push ecx
push sym.EdpEDiskCtrl.dll_CreateEdpEDiskCtrlIntObj
xor edi, edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006db7
mov edi, dword [esp + 0x28]
push str.SECDISKDLL
push 0x3ee
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, ebx
jne 0x10006dd2
xor bl, bl
jmp 0x10006e11
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x10006de4
xor bl, bl
jmp 0x10006e11
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10006df4
xor bl, bl
jmp 0x10006e11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x150], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x150], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006e68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x150], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006e93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10032551
add esp, 0x140
ret