Function at 0x4e38b2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, 0x527fb4
mov dword [ebp - 0x170], ebx
lea esi, [ebx + 0x128]
push edi
mov dword [ebp - 0x184], esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404550
lea esi, [ebx + 0x12c]
push edi
mov dword [ebp - 0x188], esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404550
lea esi, [ebx + 0x130]
push edi
mov dword [ebp - 0x18c], esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404550
lea ecx, [ebx + 0x13c]
call fcn.0043e31a
and dword [ebx + 0x124], 0
lea esi, [ebx + 0x134]
push edi
mov dword [ebp - 0x16c], esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00404550
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x80]
lea esi, [ebx + 0x14c]
mov dword [ebp - 0x160], eax
test esi, esi
je 0x4e397f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x160]
mov ecx, dword [0x5740b0]
lea edi, [ebx + 0x164]
push 1
push edi
push eax
call fcn.0045d71a
test esi, esi
je 0x4e399f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
cmp dword [edi], esi
je 0x4e3a66
sub esp, 0x18
mov ecx, esp
push str.ToolInfo
call fcn.004108e3
push dword [ebp - 0x160]
mov ecx, dword [0x5740b0]
lea eax, [ebp - 0x1c]
push eax
call fcn.0045e23f
cmp dword [ebp - 0xc], esi
je 0x4e3a5e
mov ecx, dword [edi]
lea edx, [ebp - 0x158]
mov dword [ebp - 0x158], esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
js 0x4e3a5e
cmp dword [ebp - 0x158], esi
je 0x4e3a5e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x4e3a02
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004108e3
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00419050
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4e3a24
mov eax, dword [eax]
push eax
push dword [ebp - 0x158]
lea eax, [ebp - 0x154]
push eax
call fcn.004e2ffd
add esp, 0xc
lea ecx, [ebx + 0x10]
push eax
call fcn.004e3539
lea ecx, [ebp - 0x154]
call fcn.004e34cf
lea ecx, [ebp - 0x34]
call fcn.004061d7
lea ecx, [ebp - 0x4c]
call fcn.00410d88
lea ecx, [ebp - 0x1c]
call fcn.00410d88
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x43c
push dword [ebx - 0x1c]
call esi
push 0x42
push 0x1e
mov ecx, 0x190
push ecx
mov dword [ebp - 0x168], ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x15c]
push eax
call fcn.004360ef
pop ecx
call fcn.00403a64
push eax
lea ecx, [ebp - 0x160]
call fcn.00402a6b
lea eax, [ebx + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4e3abb
mov eax, dword [eax]
mov edi, dword [ebp - 0x15c]
push eax
lea eax, [ebp - 0x160]
push edi
push eax
call fcn.00415254
add esp, 0xc
push 0x43c
push dword [ebx - 0x1c]
call esi
push dword [ebp - 0x160]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4e9
push dword [ebx - 0x1c]
call esi
push 0x200
push 0xc8
push 0x26c
push 0x78
push 0x78
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebx + 0x58]
push eax
lea eax, [ebp - 0x34]
push 0x54a438
push eax
call fcn.0042ba61
add esp, 0xc
mov dword [ebp - 0x158], eax
cmp dword [eax + 0x14], 8
jb 0x4e3b38
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
push 0x40d
push dword [ebx - 0x1c]
call esi
push dword [ebp - 0x158]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x34]
call fcn.00410d88
lea eax, [ebx + 0x58]
cmp dword [eax + 0x14], 8
jb 0x4e3b62
mov eax, dword [eax]
lea ecx, [ebp - 0x1a4]
push ecx
push dword [ebx + 0x68]
push eax
push dword [ebx - 0x1c]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 0x40d
push dword [ebx - 0x1c]
lea ecx, [ebp - 0x1b4]
call fcn.0041f436
push 0x536730
push dword [0x577c88]
lea eax, [ebp - 0x15c]
push eax
call fcn.0041bbfe
push 0
push 4
push dword [eax]
push 0
push dword [ebp - 0x1b4]
call fcn.0042067a
mov ecx, dword [ebp - 0x15c]
add esp, 0x20
lea ecx, [ecx - 0x10]
call fcn.004042e9
push 0x40d
push dword [ebx - 0x1c]
call esi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x1a4]
add eax, 0x14
cmp eax, 0x190
jg 0x4e3bf4
mov dword [ebp - 0x168], eax
push 0x40d
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x23
push dword [ebp - 0x168]
push 0xff
push 0x109
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x4e9
push dword [ebx - 0x1c]
lea ecx, [ebp - 0x19c]
call fcn.0041f472
mov esi, dword [ebp - 0x190]
test esi, esi
je 0x4e3ccc
push str.safemon_skin_browserfixTool_Back.png
push dword [0x577c88]
lea eax, [ebp - 0x15c]
push eax
call fcn.0041bbfe
mov ecx, dword [esi]
add esp, 0xc
push dword [eax]
push esi
call dword [ecx + 0x44]
mov ecx, dword [ebp - 0x15c]
lea ecx, [ecx - 0x10]
call fcn.004042e9
push 0xa
pop eax
push 0xd
mov dword [ebp - 0x180], eax
lea edx, [ebp - 0x178]
mov dword [ebp - 0x17c], eax
pop eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x190]
push edx
lea edx, [ebp - 0x180]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x190]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push 1
lea ecx, [ebp - 0x19c]
call fcn.00420653
push 1
lea ecx, [ebp - 0x19c]
call fcn.00420772
mov esi, dword [ebx + 8]
sub esp, 0x18
mov ecx, esp
push str.XmlName
call fcn.004108e3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov ecx, dword [0x5740b0]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0045e23f
cmp dword [eax + 0x14], 8
jb 0x4e3d00
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x168]
call fcn.00402af5
lea ecx, [ebp - 0x34]
call fcn.00410d88
lea ecx, [ebp - 0x1e0]
call fcn.0044d515
call fcn.00403a64
push eax
lea ecx, [ebp - 0x164]
call fcn.00402a6b
call fcn.00403a64
push eax
lea ecx, [ebp - 0x158]
call fcn.00402a6b
call fcn.00403a64
push eax
lea ecx, [ebp - 0x15c]
call fcn.00402a6b
mov esi, dword [ebp - 0x168]
push 0x527fb4
push esi
call sub.msvcrt.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4e3db4
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x174]
push str.Config_advtools_
push eax
call fcn.0041346d
push dword [eax]
lea eax, [ebp - 0x17c]
push dword [0x577c88]
push eax
call fcn.0041bbfe
add esp, 0x18
lea ecx, [ebp - 0x164]
push eax
call fcn.00402bd6
mov ecx, dword [ebp - 0x17c]
lea ecx, [ecx - 0x10]
call fcn.004042e9
jmp 0x4e3dda
push str.ConfigAdvTools.xml
push dword [0x577c88]
lea eax, [ebp - 0x174]
push eax
call fcn.0041bbfe
add esp, 0xc
lea ecx, [ebp - 0x164]
push eax
call fcn.00402bd6
mov ecx, dword [ebp - 0x174]
lea ecx, [ecx - 0x10]
call fcn.004042e9
push dword [ebp - 0x164]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e3ec9
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.00468a80
mov ebx, dword [ebx + 8]
sub esp, 0x18
mov ecx, esp
push str.ToolID
call fcn.004108e3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
mov ecx, dword [0x5740b0]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0045e23f
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x4e3e47
mov eax, dword [ebp - 0x1c]
push eax
call sub.msvcrt.dll__wtoi
pop ecx
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.0046993d
mov ebx, eax
test ebx, ebx
je 0x4e3ebb
lea ecx, [ebx + 0x1c]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00402bd6
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00402bd6
mov ecx, dword [ebp - 0x184]
lea eax, [ebx + 0x44]
push eax
call fcn.00402bd6
mov ecx, dword [ebp - 0x188]
lea eax, [ebx + 0x38]
push eax
call fcn.00402bd6
mov ecx, dword [ebp - 0x18c]
lea eax, [ebx + 0x34]
push eax
call fcn.00402bd6
mov ecx, dword [ebp - 0x16c]
lea eax, [ebx + 0x3c]
push eax
call fcn.00402bd6
lea ecx, [ebp - 0x1c]
call fcn.00410d88
mov ebx, dword [ebp - 0x170]
lea ecx, [ebx - 0x20]
call fcn.004e360c
mov ecx, dword [ebx + 0x118]
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x124], eax
test ecx, ecx
je 0x4e3ef2
mov eax, dword [ecx]
call dword [eax + 8]
and dword [ebx + 0x118], 0
call fcn.0041bcb9
mov dword [ebx + 0x118], eax
test eax, eax
je 0x4e3f5b
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x16c]
push str.Config_advtools_
push eax
call fcn.0041346d
push dword [eax]
lea eax, [ebp - 0x170]
push dword [0x577c88]
push eax
call fcn.0041bbfe
mov ecx, dword [ebx + 0x118]
add esp, 0x18
mov edx, dword [ecx]
push 0
push dword [eax]
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x170]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x16c]
lea ecx, [ecx - 0x10]
call fcn.004042e9
push 1
lea ecx, [ebx - 0x20]
call fcn.004e4742
mov ecx, dword [ebp - 0x15c]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x158]
lea ecx, [ecx - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea ecx, [ebp - 0x1e0]
call fcn.0044d825
lea ecx, [esi - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 0x160]
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea ecx, [edi - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00522d04
leave
ret 8