Function at 0x420640
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48f9aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x374
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [esi + 0x1c]
mov ebp, dword [esp + 0x394]
cmp eax, 0xffffffff
mov dword [esp + 0x388], ebx
je 0x420bdd
mov edx, dword [esp + 0x390]
lea ecx, [esp + 0x50]
push ecx
push ebx
push edx
push eax
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e2e0
cmp eax, ebx
je 0x420bdd
push edi
push ebx
lea eax, [esp + 0x7c]
push 0x104
push eax
lea ecx, [esp + 0x60]
push ebx
push ecx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
je 0x420bbe
lea edx, [esp + 0x78]
push str.CopyFiles
push edx
call fcn.00473380
add esp, 8
test eax, eax
je 0x420726
lea eax, [esp + 0x78]
push str.DelFiles
push eax
call fcn.00473380
add esp, 8
test eax, eax
jne 0x420bbe
cmp dword [esp + 0x39c], ebx
je 0x420bbe
push ebx
lea ecx, [esp + 0x284]
push 0x104
push ecx
lea edx, [esp + 0x60]
push 1
push edx
mov dword [esp + 0x64], 1
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
je 0x420bbe
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x284]
push ebx
push ecx
push edx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e2e0
cmp eax, ebx
je 0x420b8d
push ebx
lea eax, [esp + 0x180]
push 0x104
push eax
lea ecx, [esp + 0x70]
push 1
push ecx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
je 0x420b6b
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4207f5
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
call fcn.004052d0
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x42081f
push 1
lea ecx, [esp + 0x18]
call fcn.004052d0
mov edi, 0x4b9200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004759f0
push eax
call fcn.00472ac0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00472550
add esp, 0xc
lea ecx, [esp + 0x78]
lea edx, [esp + 0x17c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.004201a0
test eax, eax
je 0x420b6b
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4208c4
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.004052d0
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x4208ee
push 1
lea ecx, [esp + 0x24]
call fcn.004052d0
mov edi, 0x4b9200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004759f0
push eax
call fcn.00472ac0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00472550
add esp, 0xc
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x78]
lea eax, [esp + 0x17c]
push ecx
push edx
lea ecx, [esp + 0x288]
push eax
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], ebx
call fcn.004200c0
test eax, eax
je 0x420b6b
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4209a4
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.004052d0
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4209ce
push 1
lea ecx, [esp + 0x30]
call fcn.004052d0
mov edi, 0x4b9200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004759f0
push eax
call fcn.00472ac0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00472550
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
push 0x4a91b0
push edx
mov dword [esp + 0x4c], ecx
call fcn.004724d0
mov ecx, dword [esp + 0x28]
add esp, 0x14
cmp eax, ebx
je 0x420a3f
sub eax, ecx
cmp eax, 0xffffffff
je 0x420a3f
mov dword [esp + 0x3c], 2
jmp 0x420a68
push 0x4aae3c
push ecx
call fcn.004724d0
add esp, 8
cmp eax, ebx
je 0x420a64
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], 1
sub eax, edx
cmp eax, 0xffffffff
jne 0x420a68
mov dword [esp + 0x3c], ebx
push ebx
lea eax, [esp + 0x7c]
push 0x104
push eax
lea ecx, [esp + 0x70]
push 4
push ecx
mov dword [esp + 0x4c], ebx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
je 0x420aa0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x78]
push edx
call fcn.004202e0
mov dword [esp + 0x38], eax
mov esi, dword [ebp]
cmp esi, 0x1f4
jae 0x420b6b
lea eax, [esi + 1]
cmp esi, 0xffffffff
mov dword [ebp], eax
je 0x420b6b
push 0x38
call fcn.0048621c
add esp, 4
mov dword [esp + 0x74], eax
cmp eax, ebx
mov byte [esp + 0x38c], 1
je 0x420ae1
mov ecx, eax
call fcn.00420c60
jmp 0x420ae3
xor eax, eax
mov dword [ebp + esi*4 + 0x1f8], eax
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + esi*4 + 0x1f8]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x38c], bl
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x420b1e
mov ecx, dword [ebp + esi*4 + 0x1f8]
push eax
add ecx, 0x18
call fcn.00405350
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x420b33
mov ecx, dword [ebp + esi*4 + 0x1f8]
push eax
call fcn.00405350
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x420b4b
mov ecx, dword [ebp + esi*4 + 0x1f8]
push eax
add ecx, 0x2c
call fcn.00405350
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x420b63
mov ecx, dword [ebp + esi*4 + 0x1f8]
push eax
add ecx, 0xc
call fcn.00405350
push esi
mov ecx, ebp
call fcn.00420c50
lea ecx, [esp + 0x64]
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e200
cmp eax, ebx
jne 0x42077d
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
push ebx
lea ecx, [esp + 0x284]
inc eax
push 0x104
push ecx
lea edx, [esp + 0x60]
push eax
push edx
mov dword [esp + 0x64], eax
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
jne 0x420757
lea eax, [esp + 0x54]
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e200
cmp eax, ebx
jne 0x4206c4
pop edi
mov esi, dword [ebp]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x388], 4
call fcn.004023b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x388], 3
call fcn.004023b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x388], 2
call fcn.004023b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x388], 0xffffffff
call fcn.004023b0
mov ecx, dword [esp + 0x380]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x380
ret 0xc