Function at 0x408f80
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476846
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x409062
push 6
push str._guid
push esi
call fcn.0045fe64
add esp, 0xc
test eax, eax
jne 0x409062
add esi, 0xc
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fd6
sub ecx, edx
sar ecx, 1
cmp ecx, 8
jb 0x40905b
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
cmp esi, eax
je 0x409019
push 8
push esi
lea ecx, [ebp - 0x28]
call fcn.00407900
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40901c
lea eax, [ebp - 0x28]
push 0x10
push 0
push eax
call fcn.0045fde7
add esp, 0xc
lea ecx, [ebp - 0x40]
mov edx, eax
call fcn.00408e70
cmp dword [eax + 0x14], 8
jb 0x40903b
mov eax, dword [eax]
push 0
push str.client_guid_to_bugreport_QQ
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x40]
call fcn.00407480
lea ecx, [ebp - 0x28]
call fcn.00407480
xor eax, eax
jmp 0x4091d1
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ecx
call fcn.00407270
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0045ed90
add esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4090c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
jmp 0x4090c9
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x4090da
test eax, eax
je 0x4090da
lea eax, [ebp - 0x4c]
push eax
call ecx
lea ecx, [ebp - 0x50]
call fcn.0042c370
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x50]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409105
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00408e90
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 8
push eax
mov dword [ebp - 0x54], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x4a03c0
push 0x4a1b80
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x409152
push str.GdiPlus_init_failed
push 0x48b2d4
call fcn.00430910
add esp, 8
mov eax, dword [0x4a2004]
test al, 1
jne 0x409175
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
call fcn.0045fe5e
mov esi, eax
call fcn.0045fe58
push dword [esi]
mov ecx, 0x4a2008
push dword [eax]
call fcn.0040e6b0
test eax, eax
jne 0x409198
lea ebx, [eax + 2]
jmp 0x4091a4
call fcn.00419d50
xor ebx, ebx
test eax, eax
sete bl
push dword [0x4a1b80]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x4091cf
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4091cf
push dword [ebp - 0x4c]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 0x10