Function at 0x455310
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x688
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x455997
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x455997
push ecx
push ecx
lea ecx, [ebp - 0x64]
call fcn.004568b0
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
call fcn.00456800
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
jle 0x45544b
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
sub eax, esi
mov dword [ebp - 0x20], eax
mov eax, edi
sub eax, esi
mov dword [ebp - 0x18], eax
nop dword [eax]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [eax + esi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0x24], eax
call fcn.0046fd77
mov edi, eax
add esp, 4
test edi, edi
je 0x4553ec
push dword [ebp - 0x24]
push 0
push edi
call fcn.00487c20
add esp, 0xc
jmp 0x4553ee
xor edi, edi
lea eax, [ebp - 0x68]
cmp esi, eax
je 0x455400
mov eax, dword [esi]
mov dword [esi], edi
test eax, eax
je 0x45540d
push eax
jmp 0x455405
test edi, edi
je 0x45540d
push edi
call fcn.0046fd72
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi]
push 0
push 0
push dword [ebp - 0x24]
mov dword [ecx + esi], eax
push eax
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [eax + esi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x28]
add esi, 4
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
jl 0x4553b0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0xbc]
push 2
push eax
call fcn.0046e9ad
lea eax, [ebp - 0xbc]
push eax
call fcn.0046e9ce
add esp, 0xc
test eax, eax
je 0x455475
push eax
call fcn.0046e5c0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
push eax
call fcn.0046e9f3
add esp, 4
test eax, eax
je 0x45549f
push eax
call fcn.0046e5c0
add esp, 4
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0046e983
mov ecx, dword [ebp - 0x64]
add esp, 4
mov eax, dword [ebp - 0x14]
mov esi, ecx
xor edi, edi
lea eax, [ecx + eax*4]
xor ecx, ecx
mov edx, eax
sub edx, esi
add edx, 3
shr edx, 2
cmp esi, eax
cmova edx, ecx
mov dword [ebp - 0x20], edx
test edx, edx
je 0x455529
nop word [eax + eax]
mov eax, dword [esi]
mov dword [ebp - 0x1c], ecx
mov ecx, str.__fixpermissions
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x455510
test dl, dl
je 0x45550c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x455510
add eax, 2
add ecx, 2
test dl, dl
jne 0x4554f0
xor eax, eax
jmp 0x455515
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x1c]
test eax, eax
lea ecx, [edx + 1]
cmovne ecx, edx
inc edi
add esi, 4
cmp edi, dword [ebp - 0x20]
jne 0x4554e0
test ecx, ecx
jle 0x455976
push 0x208
lea eax, [ebp - 0x490]
push 0
push eax
call fcn.00487c20
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x490]
add esp, 0xc
push eax
push 0
push 0
push 0x1c
push 0
call edi
test eax, eax
jns 0x455588
push 0
push 0x4c7819
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043d2f0
jmp 0x455682
xor eax, eax
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4555b0
sub ecx, edx
lea eax, [ebp - 0x490]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.0043d1b0
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x58]
call fcn.00454290
lea ecx, [ebp - 0x8c]
call fcn.0043d150
push str.Battle.netLogs
lea ecx, [ebp - 0x58]
call fcn.0043b430
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
lea ecx, [ebp - 0x18]
cmovae esi, dword [ebp - 0x58]
call fcn.0043f850
lea edx, [ebp - 0x180]
mov dword [ebp - 0x180], 0x3c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x17c], esi
mov byte [ebp - 0xf4], 1
mov byte [ebp - 0xe2], 0
call fcn.00430710
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x45564a
call fcn.0040d040
push str._battle.net.log
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.0043b430
movups xmm0, xmmword [ebp - 0x58]
mov byte [ebp - 0x58], 0
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
cmp dword [ebp - 0x30], 0
je 0x455710
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xa4]
call fcn.00468840
push 0xc0
call fcn.0046fd13
push ecx
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.00468660
mov ecx, dword [0x4e5480]
mov dword [0x4e5480], eax
test ecx, ecx
je 0x4556d6
mov dword [ebp - 4], 2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x455710
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x455706
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4559ae
push edx
push ecx
call fcn.0046fd05
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x455744
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45573a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4559b3
push edx
push ecx
call fcn.0046fd05
add esp, 8
sub esp, 8
lea ecx, [ebp - 0x170]
call fcn.00456f70
mov edx, str.Logging_started_for_Battle.net__as_Permissions_Fixer__build
lea ecx, [ebp - 0x170]
call fcn.00459f60
mov edx, 0x4d0308
mov ecx, eax
call fcn.00459f60
sub esp, 8
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x170]
push eax
call fcn.00456ec0
mov edx, eax
mov ecx, 2
call fcn.004678d0
mov edx, dword [ebp - 0x90]
add esp, 8
cmp edx, 0x10
jb 0x4557cc
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4557c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4559b8
push edx
push ecx
call fcn.0046fd05
add esp, 8
lea ecx, [ebp - 0x170]
call fcn.004559d0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 0xd8], 1
call fcn.0043b510
cmp dword [ebp - 0x30], 0
jne 0x4558dc
lea eax, [ebp - 0x698]
push eax
push 0
push 0
push 0x23
push 0
call edi
test eax, eax
js 0x45583b
sub esp, 0xc
lea eax, [ebp - 0x698]
mov edx, 0x104
lea ecx, [ebp - 0x288]
push eax
call fcn.00436cd0
add esp, 0x10
lea ecx, [ebp - 0x288]
mov esi, 0x4d09fc
mov eax, ecx
mov dl, byte [ecx]
lea ecx, [ecx + 1]
test dl, dl
je 0x45585e
mov byte [eax], dl
inc eax
lea edx, [ebp - 0x185]
cmp eax, edx
jb 0x455848
mov byte [eax], 0
cmp byte [ebp - 0x288], 0
je 0x455880
push 0
mov edx, 0x104
lea ecx, [ebp - 0x288]
call fcn.00436590
add esp, 4
nop
mov al, byte [esi]
cmp al, 0x2f
je 0x45588a
cmp al, 0x5c
jne 0x45588d
inc esi
jmp 0x455880
push 0x104
mov edx, esi
lea ecx, [ebp - 0x288]
call fcn.00436b60
add esp, 4
lea edx, [ebp - 0x288]
mov ecx, edx
push 0x104
call fcn.004363c0
lea ecx, [ebp - 0x288]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4558c0
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
lea ecx, [ebp - 0xd4]
call fcn.0043d2f0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x455910
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x455906
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4559bd
push edx
push ecx
call fcn.0046fd05
add esp, 8
lea ecx, [ebp - 0xd8]
call fcn.004648f0
mov ecx, dword [0x4e5480]
mov dword [0x4e5480], 0
test ecx, ecx
je 0x45593c
mov dword [ebp - 4], 4
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x455972
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x455968
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4559c2
push edx
push ecx
call fcn.0046fd05
add esp, 8
xor esi, esi
jmp 0x455983
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
call fcn.00455eb0
mov esi, eax
lea ecx, [ebp - 0x74]
call fcn.00457d70
lea ecx, [ebp - 0x64]
call fcn.004390d0
mov eax, esi
jmp 0x455999
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004972dd
call fcn.004972dd
call fcn.004972dd
call fcn.004972dd
call fcn.004972dd
int3