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

Disassembly:
push 0xffffffffffffffff
push 0x1004dedc
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
add esp, 0xc
mov dword [esp + 0x20], ebx
call fcn.10025867
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10007ec3
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 dword [esp + 0x150], ebx
cmp byte [0x1006b339], 0
jne 0x10007f14
push 0x104
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10055dd0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x20]
push str._sSystem32_s
push eax
call fcn.100027b0
add esp, 0x10
jmp 0x10007fae
cmp dword [0x1006c56c], 0x10
mov eax, dword [0x1006c558]
jae 0x10007f27
mov eax, 0x1006c558
push eax
lea ecx, [esp + 0x20]
call fcn.10002ca0
push 0x10055dd0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x15c], 1
call fcn.10009a40
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 2
call fcn.1000bb20
mov byte [esp + 0x150], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10007f86
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 + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007fae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x10068cdc], eax
cmp eax, ebx
je 0x10008011
push str.EDPEDISK:Remote_Login_Used__n
push ebx
push 0xa36
push str.CEdpEDiskCtrlInterface::CopyLabelRepairDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000800a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x100081e2
call fcn.10025867
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x1000802b
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 + 0x14], eax
mov byte [esp + 0x150], 3
mov ebp, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x18]
push str.EDPEDISK.EXE:__s_Free_DLL_File
push ecx
call fcn.100027b0
mov edi, dword [esp + 0x20]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x10008075
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.10002a10
mov edi, dword [esp + 0x14]
push edi
push ebx
push 0xa3d
push str.CEdpEDiskCtrlInterface::CopyLabelRepairDll
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 0x100080ff
push str.EDPEDISK.EXE:Free_DLL_File_Fail_
push 4
push 0xa43
push str.CEdpEDiskCtrlInterface::CopyLabelRepairDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [esp + 0x150], 0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100080ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x150], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x10007ff1
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 0x1000812c
mov edi, dword [esp + 0x28]
push str.SECDISKDLL
push 0x3f6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, ebx
jne 0x10008147
xor bl, bl
jmp 0x10008186
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x10008159
xor bl, bl
jmp 0x10008186
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10008169
xor bl, bl
jmp 0x10008186
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], 0
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 0x100081b5
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 + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100081e0
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