Function at 0x574520
Capabilities:
Copy file
Create directory

Disassembly:
sub esp, 0x254
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, edx
lea ecx, [esp + 0x10]
call fcn.00630930
mov eax, dword [0xa255a8]
mov edi, 4
mov esi, vtable.rc_ptr_class_WDTTerritory_.0
cmp eax, edi
mov dword [esp + 0x10], esi
jne 0x574580
cmp dword [0xa255b4], 2
jne 0x574580
mov edx, dword [0xa255b0]
lea ecx, [esp + 0x18]
call fcn.00755490
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00630980
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.00630960
mov eax, dword [esp + 0x14]
test eax, eax
je 0x57458e
mov dword [0xa579b0], edi
call fcn.005c2190
mov esi, eax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
push 0x80
lea ecx, [esp + 0xa8]
push str.rmcache_
push ecx
call fcn.0076d960
push 0x80
lea edx, [esp + 0xb4]
push esi
push edx
call fcn.0076fca0
push esi
call fcn.0076d2d5
push 0x80
lea eax, [esp + 0xc4]
push str..mmp
push eax
call fcn.0076fca0
add esp, 0x28
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x44]
call fcn.00468b70
xor edi, edi
lea ecx, [esp + 0x40]
push edi
call fcn.00468dc0
test al, al
je 0x5746bf
mov eax, dword [0xa57adc]
cmp eax, edi
jne 0x57463b
push 4
call fcn.0076d5a7
add esp, 4
cmp eax, edi
je 0x574634
mov ecx, eax
call fcn.00614ec0
jmp 0x574636
xor eax, eax
mov dword [0xa57adc], eax
lea edx, [esp + 0xa4]
mov ecx, eax
push edx
call fcn.00615c00
test al, al
je 0x57469f
push str.RandMap.img
lea ecx, [esp + 0x24]
call fcn.0062ff90
mov eax, dword [0xa57adc]
lea ecx, [esp + 0x20]
push 0x820130
mov edx, dword [eax]
call fcn.007556c0
mov esi, dword [0xa57adc]
cmp esi, edi
je 0x57468b
mov ecx, esi
call fcn.00614ed0
push esi
call fcn.0076d2d5
add esp, 4
lea ecx, [esp + 0x20]
mov dword [0xa57adc], edi
call fcn.0062ff10
jmp 0x574828
mov esi, dword [0xa57adc]
cmp esi, edi
je 0x5746b9
mov ecx, esi
call fcn.00614ed0
push esi
call fcn.0076d2d5
add esp, 4
mov dword [0xa57adc], edi
mov eax, dword [0xa579d4]
mov dword [0x7cb48c], ebx
cmp eax, 0xffffffff
mov dword [0xa57974], ebx
jne 0x5746ea
push 0xffff
push edi
mov ecx, 0x821538
call fcn.0062fcf0
mov dword [0xa579d4], eax
push ebp
push 1
mov ecx, 0xa57960
call fcn.00576d70
mov ecx, dword [0xa57adc]
call fcn.006150f0
cmp dword [0xa255a8], 4
jne 0x57471f
cmp dword [0xa255b4], 2
jne 0x57471f
mov ecx, dword [0xa57adc]
call fcn.005c1d40
mov ecx, dword [0xa57ad8]
cmp ecx, edi
je 0x57472f
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x178
call fcn.0076d5a7
add esp, 4
cmp eax, edi
je 0x574749
mov ecx, eax
call fcn.00573bf0
jmp 0x57474b
xor eax, eax
mov ecx, 0x5e
mov esi, 0xa57960
mov edi, eax
mov dword [0xa57ad8], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0xa255a0]
push str.RandomMap
call fcn.00655610
xor cl, cl
call fcn.00516790
mov esi, dword [0xa57adc]
xor edi, edi
cmp esi, edi
je 0x574812
cmp dword [esi], edi
je 0x5747f8
push str.RandMap.img
lea ecx, [esp + 0x24]
call fcn.0062ff90
mov eax, dword [0xa57adc]
lea ecx, [esp + 0x20]
push 0x820130
mov edx, dword [eax]
call fcn.007556c0
lea ecx, [esp + 0x124]
push ecx
push str.rmcache
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x5747d0
push edi
push str.rmcache
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0xa4]
push edi
push edx
push str.RandMap.img
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.00574250
lea ecx, [esp + 0x20]
call fcn.0062ff10
mov esi, dword [0xa57adc]
cmp esi, edi
je 0x57480c
mov ecx, esi
call fcn.00614ed0
push esi
call fcn.0076d2d5
add esp, 4
mov dword [0xa57adc], edi
mov ecx, dword [0xa57ad8]
cmp ecx, edi
je 0x574828
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0xa57ad8], edi
lea ecx, [esp + 0x94]
mov dword [esp + 0x40], vtable.CCFileClass.0
mov dword [esp + 0xa0], edi
call fcn.00438290
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], vtable.CDFileClass.0
call fcn.0042f250
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.rc_ptr_class_WDTTerritory_.0
call fcn.00630960
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret