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

Disassembly:
push 0xffffffffffffffff
push 0x1004dfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [0x1006c558]
mov esi, 0x10
mov dword [esp + 0x20], ebx
cmp dword [0x1006c56c], esi
jae 0x10006f08
mov eax, 0x1006c558
push eax
lea ecx, [esp + 0x20]
call fcn.10002ca0
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x6c], esi
jb 0x10006f29
mov edx, dword [esp + 0x58]
cmp edx, ebx
jne 0x10006f2d
xor eax, eax
jmp 0x10006f3b
lea edx, [esp + 0x58]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006f32
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.10001ed0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push eax
call fcn.1000bab0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0x4c], 2
call fcn.10025867
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10006f7c
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
push edi
lea ecx, [esp + 0x18]
push str.EDPEDISK.EXE:__s_Free_DLL_File
push ecx
mov byte [esp + 0x58], 3
call fcn.100027b0
mov edx, dword [esp + 0x20]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x10006fc5
push ebx
lea ecx, [esp + 0x18]
call fcn.10002ae0
mov edx, dword [esp + 0x14]
push edx
push ebx
push 0x7b5
push str.CEdpEDiskCtrlInterface::CopySuspensionWndDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x1f01ff
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x100070d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.EDPEDISK.EXE:Free_DLL_File_Fail__LastError___u
push edx
call fcn.100027b0
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x10007039
push ebx
lea ecx, [esp + 0x18]
call fcn.10002ae0
mov esi, dword [esp + 0x14]
push esi
push ebx
push 0x7bd
push str.CEdpEDiskCtrlInterface::CopySuspensionWndDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007073
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x4c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 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 0x100070b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 0x10
jb 0x100070cd
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10024afb
add esp, 4
xor al, al
jmp 0x100072fb
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x1c
lea edx, [esp + 0x2c]
push edx
push sym.EdpEDiskCtrl.dll_CreateEdpEDiskCtrlIntObj
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10007107
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x68]
mov eax, esi
cmp esi, 0x14
jb 0x10007117
mov eax, 0x14
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x58]
mov edx, ebx
cmp edi, 0x10
jae 0x1000712a
lea edx, [esp + 0x58]
mov ecx, 0x100564f4
call fcn.1000a9d0
test eax, eax
jne 0x1000715e
cmp esi, 0x14
jb 0x1000715e
cmp esi, 0x14
setne al
test eax, eax
jne 0x1000715e
mov ebx, dword [esp + 0x18]
push 0x10057068
push 0x3f7
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
jmp 0x100071ab
mov eax, esi
cmp esi, 0xa
jb 0x1000716a
mov eax, 0xa
mov edx, ebx
cmp edi, 0x10
jae 0x10007175
lea edx, [esp + 0x58]
mov ecx, 0x100565a4
call fcn.1000a9d0
test eax, eax
jne 0x100071b1
cmp esi, 0xa
jb 0x100071b1
cmp esi, 0xa
setne al
test eax, eax
jne 0x100071b1
mov ecx, dword [esp + 0x18]
push str.DUILIBDLL
push 0x3f8
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, dword [esp + 0x18]
mov esi, eax
test esi, esi
jne 0x100071d3
push str.EDPEDISK.EXE:FindResource_failed
push 4
push 0x7d5
push str.CEdpEDiskCtrlInterface::CopySuspensionWndDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
xor bl, bl
jmp 0x1000724d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
ja 0x10007203
push str.EDPEDISK.EXE:SizeofResource_ret
push 0
push 0x7dd
push str.CEdpEDiskCtrlInterface::CopySuspensionWndDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
xor bl, bl
jmp 0x1000724d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10007230
push str.EDPEDISK.EXE:LoadResource_ret
push eax
push 0x7e5
push str.CEdpEDiskCtrlInterface::CopySuspensionWndDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
xor bl, bl
jmp 0x1000724d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
lea edx, [esp + 0x24]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x10007276
push str.EDPEDISK.EXE:Free_SuspensionWndDll_File_Ok
push 0
push 0x7fe
push str.CEdpEDiskCtrlInterface::CopySuspensionWndDll
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
mov byte [esp + 0x4c], 2
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 0x1000729b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100072c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 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 0x100072e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 0x10
jb 0x100072f9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10024afb
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x1c