joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491488
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x516845
call fcn.004d02ab
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
call fcn.004707d9
push dword [ebp + 8]
call dword [0x51a4b4]
test eax, eax
jne 0x4914d5
push str.ERROR_CHECK_BOOL:pathFolder.IsDirectory__
push 0x234
push str..dlgoptiondlgoptpagesync.cpp
push 5
pop ecx
call fcn.0040ef48
jmp 0x49155e
push dword [ebp + 8]
call dword [0x51a4b0]
test eax, eax
jne 0x4914ee
push str.ERROR_CHECK_BOOL:pathFolder.FileExists__
push 0x235
jmp 0x4914c3
push dword [ebp + 8]
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
call dword [0x51a4c0]
test eax, eax
je 0x491536
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [0x51a4a0]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp - 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
cmp eax, ebx
je 0x49155e
jmp 0x49154c
push edi
push dword [ebp + 8]
call fcn.00492cf6
mov eax, dword [edi + 0x60]
mov dword [esi], eax
mov eax, dword [edi + 0x64]
pop ecx
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x64], eax
mov dword [edi + 0x58], 1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
push eax
call fcn.004025f7
mov eax, esi
call fcn.004d0383
ret 4

Function at 0x491c9c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
test edi, edi
je 0x491cad
add edi, 0xffffffac
jmp 0x491caf
xor edi, edi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 1
je 0x491d0d
push ebx
push 0x472
push dword [edi + 4]
call dword [0x51a6f0]
mov esi, eax
push esi
call dword [0x51a5f8]
or dword [ebp + 0xc], 0xffffffff
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
call fcn.00401c94
test eax, eax
je 0x491d01
lea ecx, [ebx + 1]
push ecx
push eax
push esi
call dword [0x51a66c]
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
or eax, 0xffffffff
call fcn.004022c7
cmp dword [ebp + 0xc], ebx
pop ebx
jge 0x491d2f
and dword [ebp - 4], 0
jmp 0x491d27
mov eax, dword [ebp + 8]
push dword [eax]
push 0x472
push dword [edi + 4]
call dword [0x51a590]
mov dword [ebp - 4], eax
test eax, eax
jne 0x491d2f
lea esi, [edi + 0x54]
call fcn.00491f81
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x493266
Capabilities:
Create process on windows

Disassembly:
push 0x14
mov eax, 0x51265e
call fcn.004d02ab
lea eax, [ebp - 0x14]
push eax
call fcn.004028b3
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00446e6f
call fcn.0044706b
cmp eax, ebx
jge 0x4932ec
push eax
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x80
push str..dlgpublinkdlg.cpp
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
mov esi, dword [0x51a44c]
call esi
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call esi
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
call esi
jmp 0x493357
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040283d
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
mov esi, dword [0x51a44c]
call esi
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call esi
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x20]
push eax
call fcn.004028b3
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push str.http:__www.kuaipan.cn_fileviewer__sid_skactOLINK
push eax
call fcn.00402363
add esp, 0xc
push 1
push ebx
push ebx
push dword [ebp - 0x20]
push 0x530958
push ebx
call dword [0x51a480]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004028da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004028da
xor eax, eax
call fcn.004d0383
ret

Function at 0x49361e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x50d935
call fcn.004d02ab
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004025b6
and dword [ebp - 4], 0
push 0
call dword [0x51a5b8]
mov ebx, eax
test ebx, ebx
jne 0x49366d
push str.ERROR_CHECK_BOOL:bRet
push 0x7cc
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
push 5
pop ecx
call fcn.0040ef48
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004028da
jmp 0x4936d9
call dword [0x51a5bc]
mov ebx, eax
call dword [0x51a378]
test ebx, ebx
jne 0x49368b
push str.ERROR_CHECK_BOOL:bRet
push 0x7cf
jmp 0x493652
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax + 2]
push esi
push 0x2002
call dword [0x51a2e0]
mov edi, eax
push edi
call dword [0x51a2dc]
push esi
push dword [ebp - 0x10]
push eax
call fcn.004d0c50
add esp, 0xc
push edi
call dword [0x51a200]
push edi
push 0xd
call dword [0x51a5c4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004028da
call dword [0x51a57c]
mov eax, ebx
call fcn.004d0383
ret
Function at 0x493bcf
Capabilities:
Hide graphical window

Disassembly:
push 0x20
mov eax, 0x518683
call fcn.004d02ab
mov esi, edi
call fcn.004944c3
test eax, eax
jne 0x493c07
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 0xc]
push dword [ebp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
push 0x111
push dword [edi + 4]
call dword [0x51a50c]
jmp 0x493c62
push 0x4d4
push dword [edi + 4]
mov dword [edi + 0x20], 1
call dword [0x51a6f0]
push 0
push eax
call dword [0x51a500]
lea eax, [ebp - 0x2c]
push eax
call fcn.0047b339
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.004944eb
lea eax, [ebp - 0x2c]
lea esi, [edi + 0x64]
push eax
call fcn.00495608
push edi
call fcn.00494376
mov esi, edi
call fcn.0049433a
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0047acb6
xor eax, eax
call fcn.004d0383
ret 0xc

Function at 0x493d91
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
call fcn.004944c3
test eax, eax
je 0x493de3
mov edx, dword [esp + 8]
push 0
push 0
push esi
push 0x49515d
lea eax, [esi + 0x84]
lea ecx, [esi + 0x24]
push 0
push 0
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.004cd2bb
add esp, 0x18
mov dword [esi + 0x38], eax
test eax, eax
jne 0x493de3
push str.ERROR_CHECK_BOOLEX:m_hThread
push 0x104
push str..dlgoptiondlg_selectivedlg.cpp
push 5
pop ecx
call fcn.0040ef48
xor eax, eax
pop esi
ret 4

Function at 0x494234
Capabilities:
Hide graphical window

Disassembly:
push 0x34
mov eax, 0x516820
call fcn.004d02ab
mov eax, dword [ebx + 0x7c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x64]
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x28], eax
call fcn.0044a4e8
test al, al
jne 0x494334
lea eax, [ebp - 0x40]
push eax
call fcn.0040df06
and dword [ebp - 4], 0
call fcn.00449c0c
mov eax, dword [eax]
mov edi, dword [eax - 0xc]
call fcn.00449c0c
lea edx, [ebp - 0x18]
push edx
lea ecx, [edi - 1]
push eax
call fcn.00446248
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004022e5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004028da
lea eax, [ebp - 0x14]
call fcn.004707d9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push 0x5c
call fcn.00446071
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
xor esi, esi
sar eax, 2
inc esi
pop ecx
pop ecx
cmp eax, esi
ja 0x494300
mov byte [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004025f7
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call fcn.0040dd8b
lea esi, [ebp - 0x20]
call fcn.0044a52b
jmp 0x49424e
push 0x4d4
push dword [ebx + 4]
call dword [0x51a6f0]
push 0
push eax
call dword [0x51a500]
mov dword [ebx + 0x20], esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004025f7
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call fcn.0040dd8b
call fcn.004d0383
ret
Function at 0x49433a
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push esi
push 0x4946ee
push edi
push edi
call fcn.004cd2bb
add esp, 0x18
mov dword [esi + 0x38], eax
cmp eax, edi
jne 0x494372
push str.ERROR_CHECK_BOOLEX:m_hThread
push 0x1dd
push str..dlgoptiondlg_selectivedlg.cpp
push 5
pop ecx
mov edi, 0x80004005
call fcn.0040ef48
mov eax, edi
pop edi
ret
Function at 0x49872f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0x459
push dword [esi + 4]
call dword [0x51a6f0]
push 0
push eax
call dword [0x51a500]
push dword [esi + 4]
call dword [0x51a5ec]
pop esi
ret

Function at 0x4987e9
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
mov edi, eax
push 0
push dword [edi + 4]
call dword [0x51a500]
mov ebx, str.about:blank
call fcn.00499b94
pop edi
pop ebx
ret
Function at 0x499298
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x512486
call fcn.004d0314
xor ebx, ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push str.CMakeInstallPackDlg::_BuildInstallPack__
push 0x12d
push str..dlgmakeinstallpackdlgmakeinstallpackdlg.cpp
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.004020c4
mov dword [ebp - 4], ebx
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004ce6f0
add esp, 0xc
push ebx
push 0x10
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [0x51a48c]
cmp eax, ebx
jne 0x499314
mov dword [ebp - 0x21c], 0x80004005
jmp 0x499361
lea eax, [ebp - 0x230]
push eax
call fcn.0049a937
mov byte [ebp - 4], 1
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.004025b6
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0049a9e0
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x230]
call fcn.0049a999
mov esi, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x248]
push eax
call fcn.0040201a
mov eax, esi
call fcn.004d0397
ret
Function at 0x499b94
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5155dc
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x56a5a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
and dword [esp + 0xc], 0
push ebx
push str.szURL___s
lea esi, [esp + 0x18]
call fcn.00401fa5
pop ecx
pop ecx
and dword [esp + 0x38], 0
push dword [eax]
lea eax, [esp + 0x10]
push eax
push str.CIEWndBaseDlg::Navigate
push 0xbf
mov esi, str.d:code_sharecube_branches_branch_wps_release_srcclientxxliveshelldlgmakeinstallpackdlg.._ie_iewindowbase.h
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004020c4
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x10]
call fcn.004028da
test ebx, ebx
je 0x499c12
cmp word [ebx], 0
jne 0x499c24
push str.ASSERT:__IsStrEmpty_szURL_
push 0xc0
push esi
xor ecx, ecx
call fcn.0040ef48
mov eax, dword [edi]
and dword [edi + 0x74], 0
mov ecx, edi
call dword [eax + 0x18]
push ebx
push edi
call fcn.0046a8ad
mov dword [esp + 0xc], eax
test eax, eax
jge 0x499c55
push eax
push str.ERROR_CHECK_COM_hr___x:_hr
push 0xc6
push esi
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
mov esi, dword [esp + 0xc]
or dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.0040201a
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49a7ed
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esi + 0x140]
cmp eax, 0xffffffff
jne 0x49a7fb
xor al, al
ret
push ebx
push ebp
mov ebp, dword [0x51a370]
push edi
xor ebx, ebx
push ebx
lea edi, [esi + 0x144]
push edi
push 0x40
push esi
push eax
call ebp
test eax, eax
je 0x49a931
cmp dword [edi], 0x40
jne 0x49a931
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x49a931
push ebx
push ebx
push dword [esi + 0x3c]
push dword [esi + 0x140]
call dword [0x51a338]
cmp eax, 0xffffffff
je 0x49a931
push 0
push edi
push 0xf8
lea ebx, [esi + 0x40]
push ebx
push dword [esi + 0x140]
call ebp
test eax, eax
je 0x49a931
cmp dword [edi], 0xf8
jne 0x49a931
cmp dword [ebx], 0x4550
jne 0x49a931
mov eax, 0xe0
cmp word [esi + 0x54], ax
jne 0x49a931
movzx eax, word [esi + 0x46]
xor ecx, ecx
push 0x28
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c9e76
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
je 0x49a931
xor eax, eax
mov word [esi + 0x13c], ax
jmp 0x49a927
movzx eax, word [esi + 0x13c]
imul eax, eax, 0x28
add eax, dword [esi + 0x138]
push 0
push edi
push 0x28
push eax
push dword [esi + 0x140]
call ebp
test eax, eax
je 0x49a931
cmp dword [edi], 0x28
jne 0x49a931
movzx ecx, word [esi + 0x13c]
mov edx, dword [esi + 0x138]
movzx eax, cx
imul eax, eax, 0x28
add eax, edx
lea edx, [eax + 0x28]
jmp 0x49a916
cmp byte [eax], 0
jne 0x49a91c
movzx edx, word [esi + 0x13c]
inc eax
inc edx
imul edx, edx, 0x28
add edx, dword [esi + 0x138]
cmp eax, edx
jb 0x49a8ff
jmp 0x49a92d
inc ecx
mov word [esi + 0x13c], cx
mov ax, cx
cmp ax, word [esi + 0x46]
jb 0x49a8be
mov al, 1
jmp 0x49a933
xor al, al
pop edi
pop ebp
pop ebx
ret
Function at 0x49af60
Capabilities:
Check if file exists

Disassembly:
push 0x360
mov eax, 0x50d840
call fcn.004d0314
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x36c]
push eax
xor edi, edi
call fcn.004022e5
mov byte [ebp - 4], 1
push dword [ebp - 0x36c]
call dword [0x51a4b0]
test eax, eax
je 0x49aff8
push dword [ebp - 0x36c]
call dword [0x51a4b4]
test eax, eax
jne 0x49aff8
lea eax, [ebp - 0x368]
push eax
call fcn.0049b032
mov byte [ebp - 4], 2
push dword [ebp - 0x36c]
lea eax, [ebp - 0x368]
call fcn.00499e50
test al, al
je 0x49afe6
lea esi, [ebp - 0x368]
call fcn.0049a7ed
test al, al
je 0x49afe6
mov ecx, esi
call fcn.0049a171
movzx edi, al
mov byte [ebp - 4], 1
lea eax, [ebp - 0x368]
push eax
call fcn.0049b055
jmp 0x49b00c
push str.ERROR_CHECK_BOOL:pathExe.FileExists_____pathExe.IsDirectory__
push 0x7e
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop ecx
call fcn.0040ef48
mov byte [ebp - 4], 0
lea eax, [ebp - 0x36c]
push eax
call fcn.004025f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004028da
mov eax, edi
call fcn.004d0397
ret 4
Function at 0x49bc6a
Capabilities:
Check if file exists

Disassembly:
push 0x36c
mov eax, 0x50fc11
call fcn.004d0314
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x36c]
push eax
call fcn.004022e5
mov byte [ebp - 4], 1
push dword [ebp - 0x36c]
call dword [0x51a4b0]
test eax, eax
je 0x49bdd1
push dword [ebp - 0x36c]
call dword [0x51a4b4]
test eax, eax
jne 0x49bdd1
mov ecx, edi
call fcn.0049d006
cmp eax, ebx
mov dword [ebp - 0x370], eax
jge 0x49bcea
push eax
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x10b
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
jmp 0x49bdf2
push ecx
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [ebp - 0x374], esp
push eax
push ecx
call fcn.004029d3
mov byte [ebp - 4], 2
push ecx
mov eax, esp
mov dword [ebp - 0x378], esp
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.004029d3
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
call fcn.0049d3be
cmp eax, ebx
jne 0x49bd34
push str.ERROR_CHECK_BOOLEX:bCheck
push 0x10f
jmp 0x49bddb
lea eax, [ebp - 0x368]
push eax
call fcn.0049b032
mov byte [ebp - 4], 4
push dword [ebp + 8]
lea eax, [ebp - 0x368]
call fcn.00499e50
test al, al
je 0x49bd9e
lea esi, [ebp - 0x368]
call fcn.0049a7ed
test al, al
je 0x49bd9e
push dword [edi + 8]
mov ecx, esi
call fcn.00499eb8
movzx eax, al
cmp eax, ebx
je 0x49bd9e
cmp dword [ebp + 0xc], ebx
je 0x49bd9a
push dword [edi + 8]
call dword [0x51a1ac]
test eax, eax
jne 0x49bd8c
xor al, al
jmp 0x49bd97
lea esi, [ebp - 0x368]
call fcn.0049a02d
movzx eax, al
cmp eax, ebx
jne 0x49bdbf
push str.ERROR_CHECK_BOOLEX:bCheck
push 0x11f
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop ecx
mov dword [ebp - 0x370], 0x80004005
call fcn.0040ef48
mov byte [ebp - 4], 1
lea eax, [ebp - 0x368]
push eax
call fcn.0049b055
jmp 0x49bdf2
push str.ERROR_CHECK_BOOLEX:pathExe.FileExists_____pathExe.IsDirectory__
push 0x107
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop ecx
mov dword [ebp - 0x370], 0x80004005
call fcn.0040ef48
mov byte [ebp - 4], bl
lea eax, [ebp - 0x36c]
push eax
call fcn.004025f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004028da
mov eax, dword [ebp - 0x370]
call fcn.004d0397
ret 8
Function at 0x49d006
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x50f9c4
call fcn.004d02ab
mov ebx, ecx
mov esi, dword [0x51a1b0]
push 0
push 0
call esi
xor ecx, ecx
push 2
pop edx
mov edi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004acbe4
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x49d05f
push str.ERROR_CHECK_BOOLEX:lpTempDir
push 0x277
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop ecx
mov edi, 0x80004005
call fcn.0040ef48
jmp 0x49d17a
push eax
push edi
call esi
dec edi
cmp eax, edi
je 0x49d074
push str.ERROR_CHECK_BOOLEX:GetTempPath__dwSize__lpTempDir___dwSize___1
push 0x278
jmp 0x49d048
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.004022e5
and dword [ebp - 4], 0
lea esi, [ebx + 4]
lea eax, [ebp - 0x10]
mov edi, esi
call fcn.00403a2e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.004025f7
push dword [ebp - 0x14]
call fcn.004c9c38
mov eax, esi
mov dword [esp], str._KLive_Packer_Temp_
call fcn.0040d65b
lea edi, [ebx + 8]
mov eax, esi
mov dword [ebp - 0x14], edi
call fcn.00403a2e
push str._resource_
mov eax, edi
call fcn.0040d65b
add ebx, 0xc
mov eax, esi
mov edi, ebx
call fcn.00403a2e
push str._setup_
mov eax, ebx
call fcn.0040d65b
push dword [esi]
call dword [0x51a4b0]
test eax, eax
je 0x49d118
push dword [esi]
call dword [0x51a4b4]
test eax, eax
je 0x49d118
push dword [esi]
call fcn.0049da7d
mov edi, eax
pop ecx
test edi, edi
jge 0x49d118
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x288
jmp 0x49d16a
push dword [esi]
call fcn.0040ab08
mov edi, eax
pop ecx
test edi, edi
jge 0x49d133
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x28b
jmp 0x49d16a
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0040ab08
mov edi, eax
pop ecx
test edi, edi
jge 0x49d151
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x28e
jmp 0x49d16a
push dword [ebx]
call fcn.0040ab08
mov edi, eax
pop ecx
test edi, edi
jge 0x49d17a
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x291
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
mov eax, edi
call fcn.004d0383
ret
Function at 0x49d1b1
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
sub esp, 0x418
lea ebp, [esp - 4]
mov eax, dword [0x56a5a0]
xor eax, ebp
mov dword [ebp + 0x418], eax
push 0x28
mov eax, 0x50d7b5
call fcn.004d02ab
mov dword [ebp - 4], 1
push dword [ebp + 0x424]
lea eax, [ebp - 0x10]
push eax
call fcn.004022e5
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
call fcn.004707d9
push dword [ebp + 0x428]
lea eax, [ebp - 0x14]
push eax
call fcn.004022e5
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
call fcn.004707d9
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.004ce6f0
xor eax, eax
push esi
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push edi
push eax
call fcn.004ce6f0
mov eax, dword [ebp - 0x10]
add esp, 0x18
cmp dword [eax - 0xc], edi
je 0x49d34a
mov esi, dword [0x51a4b0]
push eax
call esi
test eax, eax
je 0x49d34a
push dword [ebp - 0x10]
mov edi, dword [0x51a4b4]
call edi
test eax, eax
je 0x49d34a
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x49d33e
push eax
call esi
test eax, eax
je 0x49d33e
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x49d33e
push 0x53a7b8
lea eax, [ebp - 0x10]
call fcn.0040d65b
push dword [ebp - 0x10]
mov esi, 0x105
lea eax, [ebp]
push esi
push eax
call fcn.004cdfa0
push dword [ebp - 0x14]
lea eax, [ebp + 0x20c]
push esi
push eax
call fcn.004cdfa0
lea eax, [ebp]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49d2d1
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 2], cx
lea eax, [ebp + 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49d2ef
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 0x20e], cx
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x20c]
mov dword [ebp - 0x28], eax
mov eax, 0x614
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x30], 2
call dword [0x51a498]
jmp 0x49d361
push str.ERROR_CHECK_BOOL:_IsStrEmpty_pathDirTo.m_strPath___pathDirTo.FileExists____pathDirTo.IsDirectory__
push 0x2ac
jmp 0x49d354
push str.ERROR_CHECK_BOOL:_IsStrEmpty_pathDirFrom.m_strPath___pathDirFrom.FileExists____pathDirFrom.IsDirectory__
push 0x2ab
push str..dlgmakeinstallpackdlgSimpleKLivePacker.cpp
push 5
pop ecx
call fcn.0040ef48
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.004025f7
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
call fcn.004025f7
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x424]
call fcn.004028da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x428]
call fcn.004028da
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x418]
xor ecx, ebp
call fcn.004c9b4d
add ebp, 0x41c
leave
ret 8