Function at 0x403980
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x430b22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push ebp
push esi
mov esi, ecx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x43f73c
call fcn.00423df3
call fcn.00408210
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00423482
lea eax, [esp + 0x10]
mov dword [esp + 0x53c], 0
push eax
call fcn.00407ef0
add esp, 4
push str.Patcher.info
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x548], 1
call fcn.0042401a
mov eax, dword [eax]
push 0x20
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x548], 2
call fcn.00408370
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], 1
call fcn.00423d85
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 0
call fcn.00423d85
lea eax, [esp + 0x30]
push 0x504
push eax
lea ecx, [esp + 0x28]
call fcn.004236b1
cmp eax, 0x504
je 0x403a9e
push 0x14
call fcn.00423ac6
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x53c], 3
je 0x403a81
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x43f450
call fcn.00423df3
mov ecx, esi
call fcn.00403790
jmp 0x403a83
xor eax, eax
lea ecx, [esp + 0x10]
push 0x439070
push ecx
mov byte [esp + 0x544], 0
mov dword [esp + 0x18], eax
call fcn.0041381a
mov edx, dword [esp + 0x30]
lea eax, [esi + 0x18]
and edx, 0xffff
mov dword [esp + 0x18], eax
push edx
push str._05d
push eax
call fcn.00422bb2
mov eax, dword [esp + 0x3e]
add esp, 0xc
and eax, 0xffff
lea edi, [esi + 0x1c]
push eax
push str._05d
push edi
call fcn.00422bb2
add esp, 0xc
lea ebp, [esi + 0x20]
mov ecx, ebp
push str.http:__mxd.autopatch.sdo.com_mxd_patch_notice_
call fcn.00423f0e
lea ebx, [esi + 0x24]
push str.http:__mxd.autopatch.sdo.com_mxd_patch_patchdir_
mov ecx, ebx
call fcn.00423f0e
push str.http:__mxd.sdo.com_homepage.htm
lea ecx, [esi + 0x28]
call fcn.00423f0e
lea ecx, [esp + 0x334]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00423f0e
push 0x2f
mov ecx, ebp
call fcn.00422bc5
push edi
lea edx, [esp + 0x18]
push 0x43f6ac
push edx
call fcn.0042408e
push str..txt
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x544], 4
push eax
call fcn.0042401a
push eax
mov ecx, ebp
mov byte [esp + 0x540], 5
call fcn.0042419d
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 4
call fcn.00423d85
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], 0
call fcn.00423d85
push 0x2f
mov ecx, ebx
call fcn.00422bc5
push edi
lea ecx, [esp + 0x18]
push 0x43f6ac
push ecx
call fcn.0042408e
push 0x43f6ac
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x548], 6
call fcn.0042401a
push eax
mov ecx, ebx
mov byte [esp + 0x540], 7
call fcn.0042419d
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 6
call fcn.00423d85
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], 0
call fcn.00423d85
lea eax, [esp + 0x434]
lea ecx, [esp + 0x1c]
push eax
call fcn.00423df3
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x540], 8
call fcn.00422bc5
push 0x5c
lea ecx, [esp + 0x20]
call fcn.00424188
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x10], 1
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403c7b
push 0x14
call fcn.00423ac6
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x53c], 9
je 0x403c5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x43f68c
call fcn.00423df3
mov ecx, esi
call fcn.00403810
jmp 0x403c60
xor eax, eax
lea edx, [esp + 0x10]
push 0x439070
push edx
mov byte [esp + 0x544], 8
mov dword [esp + 0x18], eax
call fcn.0041381a
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
push eax
mov edx, dword [ecx]
push edx
push 0x43f66c
call fcn.004089b0
mov eax, dword [ebx]
mov ecx, dword [ebp]
add esp, 0xc
push eax
push ecx
push str._URL__Notice_:__s_Patch_:__s_n
call fcn.004089b0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x53c], 0
call fcn.00423d85
lea ecx, [esp + 0x20]
mov dword [esp + 0x53c], 0xffffffff
call fcn.004234d7
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x530
ret