Function at 0x457740
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1abd
push eax
mov dword fs:[0], esp
sub esp, 0x710
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
call fcn.0048fa75
mov ecx, ebp
call fcn.0045ce70
test al, al
je 0x4579c4
cmp dword [esp + 0x730], 4
je 0x4579c4
lea ecx, [esp + 0x30]
call fcn.0043b330
mov eax, dword [ebp + 0xa654]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x72c], 0
call fcn.0043b460
mov ecx, 0xc2
xor eax, eax
lea edi, [esp + 0x418]
lea ebx, [ebp + 0x9b10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x418]
lea edi, [ebp + 0x9b25]
push ecx
push edi
push ebx
lea ecx, [esp + 0x3c]
call fcn.0043c480
test al, al
jne 0x457813
push 0xa
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ca7a0
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
lea ecx, [esp + 0x30]
mov dword [esp + 0x728], 0xffffffff
call fcn.0043b3c0
xor al, al
jmp 0x457e29
cmp dword [esp + 0x598], 5
jne 0x457857
push 0x258
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ca744
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
lea ecx, [esp + 0x30]
mov dword [esp + 0x728], 0xffffffff
call fcn.0043b3c0
xor al, al
jmp 0x457e29
lea edx, [esp + 0x14]
lea ecx, [esp + 0x30]
push edx
call fcn.0043cae0
push 2
lea eax, [esp + 0x24]
push 0xa
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x734], 1
call fcn.0048a2ca
mov esi, eax
push 2
lea ecx, [esp + 0x28]
push 8
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x734], 2
call fcn.0048a2ca
push 0x4c95c4
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x734], 3
call fcn.0048c698
push esi
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x730], 4
push eax
call fcn.0048c632
lea ecx, [esp + 0x18]
mov byte [esp + 0x728], 8
call fcn.0048c403
lea ecx, [esp + 0x24]
mov byte [esp + 0x728], 7
call fcn.0048c403
lea ecx, [esp + 0x20]
mov byte [esp + 0x728], 6
call fcn.0048c403
mov ecx, dword [esp + 0x1c]
push ecx
push edi
push ebx
lea ecx, [esp + 0x3c]
call fcn.0043e720
test al, al
jne 0x457967
push 0xa
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ca710
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
lea ecx, [esp + 0x1c]
mov byte [esp + 0x728], 1
call fcn.0048c403
lea ecx, [esp + 0x14]
mov byte [esp + 0x728], 0
call fcn.0048c403
lea ecx, [esp + 0x30]
mov dword [esp + 0x728], 0xffffffff
call fcn.0043b3c0
xor al, al
jmp 0x457e29
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x9c85]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x728], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0048c403
lea ecx, [esp + 0x14]
mov byte [esp + 0x728], 0
call fcn.0048c403
lea ecx, [esp + 0x30]
mov dword [esp + 0x728], 0xffffffff
call fcn.0043b3c0
mov eax, dword [ebp + 0xa640]
lea esi, [ebp + 0xa640]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.0048c178
mov ecx, ebp
call fcn.0045fdf0
mov ecx, ebp
call fcn.004601a0
test eax, eax
mov dword [esp + 0x1c], eax
jge 0x457a75
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.004601a0
test eax, eax
mov dword [esp + 0x1c], eax
jge 0x457a75
mov ecx, dword [0x4cc854]
mov dword [esp + 0x18], ecx
mov edx, eax
lea eax, [esp + 0x18]
push edx
push 0x4ca508
push eax
mov dword [esp + 0x734], 9
call fcn.0048a7fc
add esp, 0xc
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0048c178
mov ecx, ebp
call fcn.00452130
lea ecx, [esp + 0x18]
mov dword [esp + 0x728], 0xffffffff
call fcn.0048c403
xor al, al
jmp 0x457e29
push str.MarkG.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x457a99
push 0xa
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
jmp 0x457d0b
push str.MarkG
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x457ad6
push 0xa
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ca6e8
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x457e29
lea esi, [ebp + 0xa44c]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00401a40
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004042c0
mov eax, dword [esp + 0x28]
xor ebx, ebx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
shl eax, 2
lea ecx, [eax + edx*4]
mov eax, dword [ebp + 0xa624]
cmp eax, ebx
mov dword [ebp + 0xa620], ecx
je 0x457b2f
push eax
call fcn.0048c16d
add esp, 4
mov dword [ebp + 0xa624], ebx
mov edx, dword [ebp + 0xa620]
push edx
call fcn.0048c144
mov ecx, dword [ebp + 0xa620]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0xa624], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xa628]
cmp eax, ebx
je 0x457b75
push eax
call fcn.0048c16d
add esp, 4
mov dword [ebp + 0xa628], ebx
push 0x10000
call fcn.0048c144
mov edi, eax
mov ecx, 0x4000
xor eax, eax
mov dword [ebp + 0xa628], edi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa638]
lea esi, [ebp + 0xa630]
add esp, 4
cmp eax, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
je 0x457bb7
push eax
call fcn.0048c16d
add esp, 4
mov dword [ebp + 0xa638], ebx
push 0x21
call fcn.0048c144
mov edi, eax
mov ecx, 8
xor eax, eax
mov dword [ebp + 0xa638], edi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [ebp + 0x9991]
add esp, 4
cmp al, 0x30
jne 0x457be3
mov dword [esp + 0x14], ebx
jmp 0x457c00
cmp al, 0x31
jne 0x457bf1
mov dword [esp + 0x14], 1
jmp 0x457c00
sub al, 0x32
neg al
sbb eax, eax
and al, 0xfd
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xa638]
mov ecx, dword [ebp + 0x9b08]
mov edx, dword [ebp + 0x60]
push eax
lea ebx, [ebp + 0x9855]
push ecx
push edx
push ebx
mov ecx, ebp
lea edi, [ebp + 0x9b77]
call fcn.00449f60
mov ecx, dword [ebp + 0x9ca0]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [ebp + 0xa628]
lea eax, [ebp + 0x9b25]
push edi
push eax
mov eax, dword [ebp + 0x9820]
push edx
mov edx, dword [ebp + 0xa620]
push eax
mov eax, dword [ebp + 0xa624]
push ecx
push esi
push edx
push eax
call dword [esp + 0x5c]
add esp, 0x3c
test al, al
jne 0x457e15
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.MarkG_Failed_1_Times
call fcn.0048c471
mov ecx, ebp
call fcn.0045e250
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x14
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ca67c
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
mov ecx, dword [ebp + 0xa620]
mov edi, dword [ebp + 0xa624]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push str.MarkG.dll
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0xa628]
mov ecx, 0x4000
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xa638]
mov dword [esi], eax
mov ecx, 8
mov dword [esi + 4], eax
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x457d23
mov ecx, ebp
call fcn.00468d80
push 0xa
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ca668
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
xor al, al
jmp 0x457e29
push str.MarkG
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x457d6c
mov ecx, ebp
call fcn.00468d80
push 0xa
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ca6e8
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x457e29
mov ecx, dword [ebp + 0xa638]
mov edx, dword [ebp + 0x9b08]
mov eax, dword [ebp + 0x60]
push ecx
push edx
push eax
push ebx
mov ecx, ebp
call fcn.00449f60
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x9ca0]
push eax
push ecx
mov ecx, dword [ebp + 0x9820]
lea eax, [ebp + 0x9b77]
push edx
mov edx, dword [ebp + 0xa628]
push eax
lea eax, [ebp + 0x9b25]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [ebp + 0xa620]
push ecx
mov ecx, dword [ebp + 0xa624]
push edx
push esi
push eax
push ecx
call dword [esp + 0x5c]
add esp, 0x3c
mov ecx, ebp
test al, al
jne 0x457e0d
call fcn.00468d80
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.MarkG_Failed_2_Times
call fcn.0048c471
mov ecx, ebp
call fcn.0045e250
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ca604
call fcn.0048c471
mov ecx, ebp
call fcn.00452130
xor al, al
jmp 0x457e29
call fcn.00468d80
push edi
jmp 0x457e21
mov ecx, ebp
call fcn.00468d80
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [esp + 0x720]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x71c
ret 4