Function at 0x41bf90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xffffffffffffffff
push 0x4decb4
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6306b0]
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xa18]
push eax
mov eax, dword [ebp + 0xa14]
mov esi, ecx
push eax
mov dword [ebp - 0x18], esi
call fcn.004ad6f8
xor edi, edi
lea ebx, [esi + 0x80]
mov dword [esi], vtable.CBaseDlgPrinterSelectDirect.0
mov dword [ebp - 4], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 2
call fcn.004a8938
mov dword [esi + 0xa0], vtable.CListCtrl.0
lea ecx, [esi + 0xf4]
mov byte [ebp - 4], 3
call fcn.004a8938
mov dword [esi + 0xf4], vtable.CListCtrl.0
lea ecx, [esi + 0x148]
mov byte [ebp - 4], 4
call fcn.004a8938
mov dword [esi + method.CListCtrl.virtual_0], vtable.CListCtrl.0
lea ecx, [esi + 0x1a0]
mov byte [ebp - 4], 5
call fcn.004a8938
mov dword [esi + method.CTabCtrl.virtual_0], vtable.CTabCtrl.0
lea ecx, [esi + 0x1f8]
mov byte [ebp - 4], 6
call fcn.004972e0
lea ecx, [esi + 0x254]
mov byte [ebp - 4], 7
call fcn.004972e0
lea ecx, [esi + 0x2b0]
mov byte [ebp - 4], 8
call fcn.004a8938
mov dword [esi + method.CButton.virtual_0], vtable.CButton.0
lea ecx, [esi + 0x304]
mov byte [ebp - 4], 9
call fcn.004a8938
mov dword [esi + method.CButton.virtual_0], vtable.CButton.0
lea ecx, [esi + 0x358]
mov byte [ebp - 4], 0xa
call fcn.004a8938
mov dword [esi + method.CButton.virtual_0], vtable.CButton.0
lea ecx, [esi + 0x3ac]
mov byte [ebp - 4], 0xb
call fcn.004a8938
mov dword [esi + method.CButton.virtual_0], vtable.CButton.0
lea ecx, [esi + 0x400]
mov byte [ebp - 4], 0xc
call fcn.004a8938
mov dword [esi + 0x400], 0x564064
lea ecx, [esi + 0x454]
mov byte [ebp - 4], 0xd
call fcn.004971c0
lea ecx, [esi + 0x4c8]
mov byte [ebp - 4], 0xe
call fcn.004a8938
mov dword [esi + 0x4c8], 0x5643a4
mov byte [ebp - 4], 0xf
call fcn.004a4420
call fcn.004a4420
mov eax, dword [eax + 0xc]
push 0xfa0
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7fe
lea ecx, [ebp + 2]
push edi
push ecx
mov dword [esi + 0x1f4], eax
mov word [ebp], di
call fcn.004b4de0
push 0x206
lea edx, [ebp + 0x802]
push edi
push edx
mov word [ebp + 0x800], di
call fcn.004b4de0
add esp, 0x18
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp]
push ecx
push str.TEMPPATH
mov ecx, eax
call edx
push 0x208
lea eax, [esi + 0x524]
push edi
push eax
call fcn.004b4de0
add esp, 0xc
lea eax, [esi + 0x524]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x562d28
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x800]
push str._s_s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp + 0x800]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.CDDI_SDK.dll
mov dword [esi + 0x51c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x56677c
mov dword [esi + 0x51c], eax
mov dword [esi + 0x520], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [esi + 0x51c], edi
mov dword [esi + 0x520], eax
je 0x41c23e
cmp eax, edi
jne 0x41c323
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [ebp - 0x14]
push edi
push 0x40
push ecx
call fcn.004a6d62
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [ebp - 0x14], eax
jbe 0x41c282
call fcn.004b5f27
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
jbe 0x41c295
call fcn.004b5f27
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push eax
push ebx
lea edx, [ebp - 0x1c]
push edx
mov ecx, ebx
call fcn.00414750
mov dword [0x631ba8], edi
mov dword [esi + 0x734], edi
mov dword [esi + 0x738], edi
mov dword [esi + 0x19c], edi
mov ebx, dword [esi + 0x98]
cmp dword [esi + 0x94], ebx
lea edi, [esi + 0x90]
jbe 0x41c2d8
call fcn.004b5f27
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
jbe 0x41c2eb
call fcn.004b5f27
mov eax, dword [ebp - 0x18]
push ebx
push edi
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00414750
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.004b4b34
add ebp, 0xa0c
mov esp, ebp
pop ebp
ret 8
mov dword [0x631bac], esi
push 0xd4
mov dword [esi + 0x78], edi
mov byte [ebp - 4], 0x10
call fcn.004a3787
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
cmp ecx, edi
mov byte [ebp - 4], 0x11
je 0x41c358
push edi
call fcn.004989e0
mov dword [esi + 0x74], eax
jmp 0x41c272
xor eax, eax
mov dword [esi + 0x74], eax
jmp 0x41c272