Function at 0x435740
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b8a8
push 0x434e46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffd68
mov eax, dword [0x44d558]
mov dword [ebp - 0x7c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [0x44ee44], 0
jne 0x435832
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp + 0x18]
push eax
call fcn.00435cc0
add esp, 4
mov dword [0x44ee40], eax
cmp dword [0x44ee40], 0
je 0x43580f
push 0x44ee20
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00435ec0
add esp, 8
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
jne 0x435824
mov dword [0x44ee44], 1
jmp 0x435832
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x1c], edx
jmp 0x435b48
mov word [ebp - 0x290], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x28e]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x298], 0x105
push 0x43b724
call sub.MSVCR71.dll_wcslen
add esp, 4
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
je 0x4358f1
mov edx, dword [ebp - 0x294]
cmp edx, dword [ebp - 0x298]
jae 0x4358f1
lea eax, [ebp - 0x290]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x29c]
lea edx, [eax + ecx + 2]
cmp edx, dword [ebp - 0x298]
ja 0x4358f1
push 0x43b740
lea eax, [ebp - 0x290]
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
push 0x43b744
lea ecx, [ebp - 0x290]
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x43591c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2a4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR71.dll__local_unwind2
add esp, 8
mov eax, dword [ebp - 0x2a4]
jmp 0x435b9b
push 0x43b760
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push str.LsaRetrievePrivateData
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x5c], eax
push str.LsaStorePrivateData
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6c], eax
push 0x43b79c
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
push str.LsaFreeMemory
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
push 0x43b7c4
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x28], 0
je 0x4359ac
cmp dword [ebp - 0x5c], 0
je 0x4359ac
cmp dword [ebp - 0x6c], 0
je 0x4359ac
cmp dword [ebp - 0x74], 0
je 0x4359ac
cmp dword [ebp - 0x4c], 0
je 0x4359ac
cmp dword [ebp - 0x70], 0
jne 0x4359ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x435b48
push 0x18
push 0
lea ecx, [ebp - 0x48]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp dword [0x44ee40], 0
je 0x4359ec
push 0x44ee20
lea edx, [ebp - 0x68]
push edx
call fcn.00435c50
add esp, 8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x20], eax
jmp 0x435a08
cmp dword [ebp + 0x18], 0
je 0x435a08
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00435c50
add esp, 8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
neg edx
sbb edx, edx
and edx, 0xfffe001a
add edx, 0x20006
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x435b3e
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00435c50
add esp, 8
cmp dword [ebp + 8], 0
jne 0x435aca
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x435a72
mov ecx, dword [ebp - 0x24]
push ecx
call dword [ebp - 0x74]
mov dword [ebp - 0x1c], eax
jmp 0x435ab6
mov edx, dword [ebp - 0x58]
movzx eax, word [edx]
shr eax, 1
add eax, 1
cmp eax, dword [ebp + 0x14]
jae 0x435a95
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx]
shr edx, 1
add edx, 1
mov dword [ebp - 0x2a8], edx
jmp 0x435a9e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x58], 0
je 0x435aca
mov edx, dword [ebp - 0x58]
push edx
call dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
cmp dword [ebp + 8], 1
jne 0x435b02
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00435c50
add esp, 8
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x435b02
mov edx, dword [ebp - 0x24]
push edx
call dword [ebp - 0x74]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 2
jne 0x435b28
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x435b28
mov edx, dword [ebp - 0x24]
push edx
call dword [ebp - 0x74]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x60], 0
je 0x435b3c
mov eax, dword [ebp - 0x60]
push eax
call dword [ebp - 0x70]
mov dword [ebp - 0x60], 0
jmp 0x435b48
mov ecx, dword [ebp - 0x24]
push ecx
call dword [ebp - 0x74]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00435b56
jmp 0x435b98
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00434de1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret