Function at 0x4ba3d0
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x5060
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x505c], eax
mov eax, dword [esp + 0x5074]
mov edx, dword [esp + 0x5070]
mov ecx, dword [esp + 0x507c]
push ebx
push ebp
mov ebp, dword [esp + 0x506c]
push esi
mov esi, dword [esp + 0x5078]
push edi
mov edi, dword [esp + 0x5078]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5088]
xor ebx, ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x6c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
cmp edx, ebx
je 0x4ba441
mov dword [edx], ebx
cmp esi, ebx
je 0x4ba447
mov byte [esi], bl
cmp eax, ebx
je 0x4ba44d
mov byte [eax], bl
cmp ecx, ebx
je 0x4ba453
mov dword [ecx], ebx
push 0x207
lea ecx, [esp + 0x565]
push ebx
push ecx
mov byte [esp + 0x56c], bl
call fcn.005dfd60
push 0x3fff
lea edx, [esp + 0x107d]
push ebx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x1084], bl
call fcn.005dfd60
add esp, 0x18
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x1c], ebx
cmp dword [0x74887c], ebx
jne 0x4ba54f
push str.unrar.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x74887c], eax
cmp eax, ebx
jne 0x4ba500
cmp esi, ebx
je 0x4bae3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_load_unrar.dll._Error_Code:__d
push esi
call fcn.005dfb23
add esp, 0xc
jmp 0x4bae3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RARCloseArchive
push eax
call esi
mov dword [0x748878], eax
mov eax, dword [0x74887c]
push str.RARProcessFile
push eax
call esi
mov ecx, dword [0x74887c]
push str.RARReadHeader
push ecx
mov dword [0x748874], eax
call esi
mov edx, dword [0x74887c]
push str.RAROpenArchiveEx
push edx
mov dword [0x748870], eax
call esi
mov esi, dword [esp + 0x14]
mov dword [0x74886c], eax
cmp dword [0x748878], ebx
je 0x4bae27
cmp dword [0x748874], ebx
je 0x4bae27
cmp dword [0x748870], ebx
je 0x4bae27
cmp dword [0x74886c], ebx
je 0x4bae27
cmp ebp, ebx
je 0x4ba588
cmp byte [ebp], bl
jne 0x4ba599
cmp edi, ebx
je 0x4badf7
cmp word [edi], bx
je 0x4badf7
push 0xa4
lea eax, [esp + 0x7c]
push ebx
push eax
mov byte [esp + 0x1078], bl
call fcn.005dfd60
add esp, 0xc
cmp ebp, ebx
je 0x4ba5f7
cmp byte [ebp], bl
je 0x4ba5f7
push 0x2e
push ebp
call fcn.005e0a00
add esp, 8
cmp eax, ebx
je 0x4ba5f1
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4ba5d0
sub ecx, esi
cmp ecx, 4
jne 0x4ba5f1
mov al, byte [eax + 2]
cmp al, 0x30
jl 0x4ba5f1
cmp al, 0x39
jg 0x4ba5f1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x78], ebp
jmp 0x4ba640
push 0x2e
push edi
call fcn.005e34eb
add esp, 8
cmp eax, ebx
je 0x4ba63c
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x4ba610
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4ba610
sub ecx, esi
sar ecx, 1
cmp ecx, 4
jne 0x4ba63c
movzx eax, word [eax + 4]
cmp ax, 0x30
jb 0x4ba63c
cmp ax, 0x39
ja 0x4ba63c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x7c], edi
mov esi, dword [esp + 0x60]
lea ecx, [esp + 0x106c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 0x4000
cmp esi, ebx
je 0x4ba670
mov dword [esp + 0x80], 1
cmp byte [esi], bl
jne 0x4ba677
mov dword [esp + 0x80], ebx
lea edx, [esp + 0x78]
push edx
call dword [0x74886c]
mov edi, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], edi
cmp eax, ebx
je 0x4ba6ba
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x4ba6a6
push ecx
push ebp
push eax
call fcn.004dcaf0
add esp, 0xc
cmp edi, ebx
je 0x4bae3d
push edi
call dword [0x748878]
jmp 0x4bae3d
mov eax, dword [esp + 0x98]
test al, 4
je 0x4ba6f7
test al, 3
jne 0x4ba6ce
cmp eax, 4
jne 0x4ba6f7
push edi
call dword [0x748878]
cmp dword [esp + 0x14], ebx
je 0x4bae3d
mov edi, dword [esp + 0x14]
mov ecx, 7
mov esi, str.Archive_is_password_protected.
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4bae3d
mov dword [esp + 0x348], ebx
cmp esi, ebx
je 0x4ba742
cmp byte [esi], bl
je 0x4ba742
lea edx, [esp + 0x560]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4ba711
lea eax, [esp + 0x560]
push 0x5c
push eax
call fcn.005e0a00
add esp, 8
cmp eax, ebx
je 0x4ba735
mov byte [eax], bl
jmp 0x4ba742
mov ecx, 0x2e
mov word [esp + 0x560], cx
lea edx, [esp + 0x11c]
push edx
push edi
call dword [0x748870]
mov ebp, ebx
test eax, eax
jne 0x4badb1
jmp 0x4ba760
test byte [esp + 0x324], 4
mov dword [esp + 0x54], ebx
jne 0x4bad6e
test byte [esp + 0x344], 0x10
jne 0x4bad3f
cmp dword [esp + 0x32c], ebx
jbe 0x4bad08
cmp dword [esp + 0x48], 0xffffffff
jne 0x4ba7c6
lea eax, [esp + 0x220]
push 0x5c
push eax
call fcn.004dad90
lea ecx, [esp + 0x228]
push 0x2f
push ecx
mov esi, eax
call fcn.004dad90
add esi, eax
add esp, 0x10
cmp esi, 2
mov dword [esp + 0x48], esi
jge 0x4bad8f
lea edx, [esp + 0x220]
push 0x2e
push edx
call fcn.005e0a00
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4ba867
push str..txt
push esi
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4ba804
cmp dword [esp + 0x34], 3
jge 0x4ba804
inc dword [esp + 0x34]
jmp 0x4bad3f
push 0x6403ac
push esi
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4bad3f
push str..json
push esi
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4bad3f
lea eax, [esp + 0x220]
push 1
push eax
call fcn.004b0a10
add esp, 8
test eax, eax
je 0x4ba867
cmp dword [esp + 0x28], ebx
jne 0x4ba859
mov dword [esp + 0x28], 1
jmp 0x4bacfc
add dword [esp + 0x10], 2
mov dword [esp + 0x28], ebx
jmp 0x4bacfc
xor edi, edi
xor ebp, ebp
cmp esi, ebx
je 0x4ba914
lea ecx, [esi + 1]
push ecx
call fcn.004e3fc0
add esp, 4
test eax, eax
je 0x4ba88b
lea edi, [ebp + 1]
jmp 0x4ba914
push str..DOC
push esi
call fcn.004dd6e0
add esp, 8
test eax, eax
je 0x4ba8d3
push str..DOT
push esi
call fcn.004dd6e0
add esp, 8
test eax, eax
je 0x4ba8d3
push str..RTF
push esi
call fcn.004dd6e0
add esp, 8
test eax, eax
je 0x4ba8d3
push str..PUB
push esi
call fcn.004dd6e0
add esp, 8
test eax, eax
jne 0x4ba914
mov edx, dword [esp + 0x32c]
fild dword [esp + 0x32c]
test edx, edx
jge 0x4ba8eb
fadd qword [0x60ecc0]
fcomp qword [str.ffffffVAxlt]
fnstsw ax
test ah, 5
jnp 0x4ba90f
push ebx
push ebx
lea eax, [esp + 0x228]
push ebx
push eax
call fcn.0049fdb0
add esp, 0x10
test eax, eax
je 0x4ba914
mov ebp, 1
cmp dword [esp + 0x5090], ebx
jne 0x4baaec
cmp edi, ebx
jne 0x4ba92d
cmp ebp, ebx
je 0x4baaec
push 0x3ff
lea ecx, [esp + 0x871]
push ebx
push ecx
mov byte [esp + 0x878], bl
call fcn.005dfd60
push 0x3ff
lea edx, [esp + 0xc7d]
push ebx
push edx
mov byte [esp + 0xc84], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x479]
push ebx
push eax
mov byte [esp + 0x480], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x791]
push ebx
push ecx
mov byte [esp + 0x798], bl
call fcn.005dfd60
add esp, 0x30
lea edx, [esp + 0xc6c]
push edx
push 0x400
mov dword [esp + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x86c]
push eax
push ebx
push 0x64168c
lea ecx, [esp + 0xc78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x86c]
push edx
call fcn.004e0670
add esp, 4
cmp byte [esp + 0x86c], bl
je 0x4bac6a
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x770]
push edx
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x878]
push eax
push ebx
lea ecx, [esp + 0x470]
push ecx
push edx
push esi
mov dword [esp + 0x4c], 1
call fcn.004ba3d0
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x89c]
push ebx
push eax
call fcn.004e8950
add esp, 0x38
test eax, eax
jne 0x4bac6a
cmp edi, ebx
je 0x4baa76
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push edx
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x884]
push ebx
push ecx
mov dword [esp + 0x4c], 2
call fcn.004ba3d0
add esp, 0x20
test eax, eax
jmp 0x4baad1
cmp ebp, ebx
je 0x4baad7
push esi
push ebx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
lea ecx, [esp + 0x880]
push ebx
push ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
call fcn.004b54b0
add esp, 0x1c
test eax, eax
je 0x4baacd
cmp dword [esp + 0x44], ebx
je 0x4baacd
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4baad7
lea edx, [esp + 0x86c]
push edx
mov dword [eax], 1
call fcn.004e0670
add esp, 4
jmp 0x4bac6a
cmp dword [esp + 0x1c], ebx
jne 0x4baad7
inc dword [esp + 0x10]
lea edx, [esp + 0x86c]
push edx
call fcn.004e0670
add esp, 4
jmp 0x4bac6a
cmp esi, ebx
je 0x4bac6a
cmp dword [esp + 0x18], ebx
je 0x4bac6a
mov eax, dword [esp + 0x32c]
push ebx
push eax
lea ecx, [esp + 0x228]
push ecx
call fcn.004b0510
add esp, 0xc
test eax, eax
je 0x4bac6a
push str..LNK
push esi
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x4bab3b
mov dword [esp + 0x5c], 1
jmp 0x4bab9f
push 0x6283c8
push esi
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x4bab57
mov dword [esp + 0x50], 1
jmp 0x4bab9f
push 0x6283e8
push esi
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x4bab73
mov dword [esp + 0x58], 1
jmp 0x4bab9f
push str..SCR
push esi
call fcn.005f095a
add esp, 8
test eax, eax
je 0x4bab97
push str..PIF
push esi
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x4bab9f
mov dword [esp + 0x3c], 1
lea edx, [esp + 0x220]
push 0x5c
push edx
call fcn.005e0a00
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4babba
inc esi
jmp 0x4babc1
lea esi, [esp + 0x220]
mov eax, dword [esp + 0x18]
mov dword [eax], 1
cmp dword [esp + 0x30], ebx
jne 0x4babdc
mov ecx, dword [esp + 0x32c]
mov dword [esp + 0x30], ecx
push 0x103
lea edx, [esp + 0x35d]
push ebx
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x364], bl
call fcn.005dfd60
mov edx, dword [str.cmd.exe_chcp.com_route.exe_conime.exe_userinit.exe_winlogon.exe_imapi.exe_svchost.exe_taskeng.exe_netsh.exe_eventvwr.exe_cnab5rpk.exe_wscntfy.exe_mobsync.exe_xcopy.exe_SearchFilterHost.exe_AUDIODG.EXE_conhost.exe_cacls.exe_cleanmgr.exe_control.exe_cscript.exe_ctfmon.exe_drwtsn32.exe_dwwin.exe_ntbackup.exe_PresentationHost.exe_reg.exe_regsvr32.exe_rundll32.exe_sndvol32.exe_taskhost.exe_tcpsvcs.exe_wbengine.exe_wiaacmgr.exe_CompatTelRunner.exe_DeviceDisplayObjectProvider.exe_dinotify.exe_DllHost.exe_hkcmd.exe_igfxtray.exe_netplwiz.exe_ntvdm.exe_rstrui.exe_SearchProtocolHost.exe_SndVol.exe_sndvol32.exe_spoolsv.exe_sysocmgr.exe_WScript.exe_wgatray.exe_systempropertiesadvanced.exe_systempropertiesprotection.exe_inetinfo.exe_mode.com_logon.scr_logonui.exe_mmc.exe_msdtc.exe_mshta.exe_mspaint.exe_notepad.exe_smss.exe_csrss.exe_wininit.exe_lsass.exe_services.exe_vshost.exe]
push 1
push ebx
push 0x2c
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x374]
push ecx
push edx
call fcn.004e1380
add esp, 0x24
cmp dword [esp + 0x24], 0xffffffff
je 0x4bac6a
push ebx
lea eax, [esp + 0x35c]
push eax
push esi
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4bac62
mov eax, dword [str.cmd.exe_chcp.com_route.exe_conime.exe_userinit.exe_winlogon.exe_imapi.exe_svchost.exe_taskeng.exe_netsh.exe_eventvwr.exe_cnab5rpk.exe_wscntfy.exe_mobsync.exe_xcopy.exe_SearchFilterHost.exe_AUDIODG.EXE_conhost.exe_cacls.exe_cleanmgr.exe_control.exe_cscript.exe_ctfmon.exe_drwtsn32.exe_dwwin.exe_ntbackup.exe_PresentationHost.exe_reg.exe_regsvr32.exe_rundll32.exe_sndvol32.exe_taskhost.exe_tcpsvcs.exe_wbengine.exe_wiaacmgr.exe_CompatTelRunner.exe_DeviceDisplayObjectProvider.exe_dinotify.exe_DllHost.exe_hkcmd.exe_igfxtray.exe_netplwiz.exe_ntvdm.exe_rstrui.exe_SearchProtocolHost.exe_SndVol.exe_sndvol32.exe_spoolsv.exe_sysocmgr.exe_WScript.exe_wgatray.exe_systempropertiesadvanced.exe_systempropertiesprotection.exe_inetinfo.exe_mode.com_logon.scr_logonui.exe_mmc.exe_msdtc.exe_mshta.exe_mspaint.exe_notepad.exe_smss.exe_csrss.exe_wininit.exe_lsass.exe_services.exe_vshost.exe]
push 1
push ebx
push 0x2c
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x368]
push edx
push eax
call fcn.004e1380
add esp, 0x18
cmp dword [esp + 0x24], 0xffffffff
jne 0x4bac22
jmp 0x4bac6a
mov dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x4bacde
cmp byte [ecx], bl
je 0x4bacde
mov eax, dword [esp + 0x5090]
cmp eax, ebx
je 0x4bac8e
cmp dword [eax], 1
jne 0x4bacde
cmp edi, ebx
jne 0x4bac8e
cmp ebp, ebx
je 0x4bacde
mov edx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x564]
push ecx
push 2
push edx
mov dword [esp + 0x64], 1
call dword [0x748874]
test eax, eax
jne 0x4bacde
mov edx, dword [esp + 0x64]
cmp edx, ebx
je 0x4baccd
lea eax, [esp + 0x220]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4bacc3
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x4bacde
mov edx, dword [esp + 0x32c]
mov dword [eax], edx
cmp dword [esp + 0x10], 1
jne 0x4bacf8
cmp dword [esp + 0x38], ebx
jle 0x4bacf8
mov eax, dword [esp + 0x32c]
cmp eax, dword [esp + 0x30]
je 0x4bacfc
inc dword [esp + 0x10]
inc dword [esp + 0x38]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
cmp ebp, 1
jle 0x4bad39
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4badb1
cmp dword [eax], 1
jne 0x4badb1
cmp dword [esp + 0x4c], ebx
jne 0x4bad94
cmp dword [esp + 0x5c], ebx
jne 0x4bad94
cmp dword [esp + 0x1c], ebx
jne 0x4bad94
cmp ebp, 3
jg 0x4badb1
cmp dword [esp + 0x54], ebx
jne 0x4bad55
mov edi, dword [esp + 0x20]
push ebx
push ebx
push ebx
push edi
call dword [0x748874]
cmp eax, ebx
jne 0x4bad9b
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x11c]
push ecx
push edi
call dword [0x748870]
test eax, eax
je 0x4ba760
jmp 0x4badb1
cmp dword [esp + 0x14], ebx
je 0x4bad8b
mov edi, dword [esp + 0x14]
mov ecx, 7
mov esi, str.Archive_is_password_protected.
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
xor ebp, ebp
jmp 0x4badb1
add ebp, 2
jmp 0x4badb1
mov ebp, 1
jmp 0x4badb1
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x4badad
push ecx
push eax
call fcn.004dcc00
add esp, 8
mov ebp, dword [esp + 0x10]
push edi
call dword [0x748878]
cmp ebp, 1
jne 0x4badd4
cmp dword [esp + 0x1c], ebx
je 0x4badcd
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4badcd
mov dword [eax], ebp
mov eax, 1
jmp 0x4bae3f
cmp ebp, 2
je 0x4badde
cmp ebp, 3
jne 0x4bae3d
cmp dword [esp + 0x3c], ebx
jne 0x4badf0
cmp dword [esp + 0x50], ebx
jne 0x4badf0
cmp dword [esp + 0x58], ebx
je 0x4bae3d
mov eax, 1
jmp 0x4bae3f
cmp esi, ebx
je 0x4bae3d
mov edx, dword [str.Invalid_Parameters_]
mov dword [esi], edx
mov eax, dword [0x64154c]
mov dword [esi + 4], eax
mov ecx, dword [0x641550]
mov dword [esi + 8], ecx
mov edx, dword [0x641554]
mov dword [esi + 0xc], edx
mov eax, dword [0x641558]
mov dword [esi + 0x10], eax
jmp 0x4bae3d
cmp esi, ebx
je 0x4bae3d
mov edi, dword [esp + 0x14]
mov ecx, 8
mov esi, str.Unable_to_get_function_addresses.
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, dword [esp + 0x506c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x5060
ret