Function at 0x404b40
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0xb8
push 0xffffffffffffffff
push 0x4ce9f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x512f80]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc0]
mov dword [ebp - 0x14], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
push 0x51b0b8
lea ecx, [ebp + 0x7c]
push ecx
mov ecx, 0x4e2288
call fcn.00408aa0
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x51b0d4
push eax
lea edx, [ebp + 0x44]
push edx
call fcn.00408900
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [ebp + 0x94], 0x10
jb 0x404bd3
mov eax, dword [ebp + 0x80]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp + 0x94], 0xf
mov dword [ebp + 0x90], ebx
mov byte [ebp + 0x80], bl
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00408ff0
mov edi, eax
mov byte [ebp - 4], 3
push 0x51b0b8
lea eax, [ebp + 0x98]
push eax
mov ecx, 0x4e2784
call fcn.00408aa0
mov byte [ebp - 4], 4
push edi
push eax
lea ecx, [ebp + 0x7c]
push ecx
call fcn.00408900
mov byte [ebp - 4], 5
push eax
lea edx, [ebp + 0x60]
push edx
mov ecx, 0x4e277c
call fcn.00408aa0
add esp, 0x24
mov byte [ebp - 4], 7
cmp dword [ebp + 0x94], 0x10
jb 0x404c52
mov eax, dword [ebp + 0x80]
push eax
call fcn.004606bf
add esp, 4
mov edi, 0xf
mov dword [ebp + 0x94], edi
mov dword [ebp + 0x90], ebx
mov byte [ebp + 0x80], bl
mov byte [ebp - 4], 8
cmp dword [ebp + 0xb0], 0x10
jb 0x404c85
mov ecx, dword [ebp + 0x9c]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
mov byte [ebp - 4], 9
cmp dword [ebp - 0x40], 0x10
jb 0x404cad
mov edx, dword [ebp - 0x54]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00406590
lea eax, [ebp + 0x60]
call fcn.00431e40
test al, al
jne 0x404db0
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
push 1
push 0x4e24cc
lea ecx, [ebp + 0x98]
call fcn.0040e480
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x18]
push eax
call fcn.00455dd0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xb
cmp dword [esi], ebx
jne 0x404d28
push str.Non_null_m_pOwnedObj
call fcn.0042c7e0
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [ebp + 0x98]
push eax
push 0x51afbc
push 0x51afa0
mov edx, dword [edx + 0x28]
call edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x404d79
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x404d79
mov eax, dword [ebp - 0x14]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x404d76
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 9
mov esi, 0x10
cmp dword [ebp + 0xb0], esi
jb 0x404d99
mov ecx, dword [ebp + 0x9c]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
jmp 0x405460
lea ecx, [ebp]
push ecx
lea edi, [ebp + 0x60]
call fcn.0041a0b0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
lea edi, [ebp]
call fcn.0041a240
mov dword [ebp + 0x94], 0xf
mov dword [ebp + 0x90], ebx
mov byte [ebp + 0x80], bl
push 3
push 0x4e27a4
lea ecx, [ebp + 0x7c]
call fcn.0040e480
mov byte [ebp - 4], 0xe
lea edx, [ebp + 0x7c]
push edx
call fcn.004324f0
push 1
lea edi, [ebp + 0x7c]
call fcn.004336f0
add esp, 8
xor edi, edi
mov dword [ebp - 0x38], edi
lea ecx, [ebp]
call fcn.0041a320
cmp edi, eax
jae 0x405074
push ebx
call fcn.0048223c
push edx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00409050
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x7c]
push ecx
lea edx, [ebp - 0x94]
push edx
mov ecx, 0x4e228c
call fcn.00408aa0
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x10
lea esi, [ebp]
call fcn.0041a170
cmp dword [eax + 0x18], 0x10
jb 0x404e76
mov eax, dword [eax + 4]
jmp 0x404e79
add eax, 4
mov esi, eax
call fcn.004336c0
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb0]
push edx
mov ecx, eax
call fcn.00408aa0
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xcc]
push eax
mov ecx, 0x4e2288
call fcn.00408aa0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x30]
push ecx
push eax
lea edx, [ebp + 0x98]
push edx
call fcn.00408900
add esp, 0x1c
mov byte [ebp - 4], 0x14
mov esi, 0x10
cmp dword [ebp - 0xb4], esi
jb 0x404ee0
mov eax, dword [ebp - 0xc8]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x98], esi
jb 0x404f11
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x7c], esi
jb 0x404f3f
mov edx, dword [ebp - 0x90]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x60], esi
jb 0x404f64
mov eax, dword [ebp - 0x74]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x74], bl
lea eax, [ebp + 0x98]
call fcn.00431e40
test al, al
je 0x404fa4
mov dword [ebp - 0x30], 0x64
mov dword [ebp - 0x2c], 2
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 0x98]
call fcn.00433c30
add esp, 8
lea esi, [ebp]
call fcn.0041a170
call fcn.00431e40
test al, al
je 0x404fe8
cmp dword [ebp + 0xb0], 0x10
mov ebx, dword [ebp + 0x9c]
jae 0x404fca
lea ebx, [ebp + 0x9c]
lea esi, [ebp]
call fcn.0041a170
cmp dword [eax + 0x18], 0x10
jb 0x404fdd
mov eax, dword [eax + 4]
jmp 0x404fe0
add eax, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, edi
lea ecx, [ebp]
call fcn.0041a160
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x5c], 0x64
mov dword [ebp - 0x34], 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp + 0x98]
call fcn.00433c30
add esp, 8
mov dword [ebp - 4], 0x17
jmp 0x405033
mov byte [ebp - 4], 0xe
cmp dword [ebp + 0xb0], 0x10
jb 0x40504f
mov edx, dword [ebp + 0x9c]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp + 0xb0], 0xf
xor eax, eax
mov dword [ebp + 0xac], eax
mov byte [ebp + 0x9c], al
add edi, 1
xor ebx, ebx
mov esi, dword [ebp - 0x3c]
jmp 0x404e19
lea eax, [ebp]
push eax
mov edx, esi
mov ecx, 0x51b0b8
call fcn.00415c10
push esi
mov edx, dword [ebp - 0x14]
mov ecx, 0x51b0b8
call fcn.00415fe0
add esp, 8
mov eax, dword [esi]
call fcn.00406680
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0x34], 0xa
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp + 0x60]
call fcn.00433c30
add esp, 8
mov dword [ebp - 4], 0xe
jmp 0x4050d9
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 0x1c
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp esi, eax
jbe 0x4050f8
call fcn.00483a80
mov eax, dword [ebp - 0x20]
mov edi, eax
cmp dword [ebp - 0x24], eax
jbe 0x405107
call fcn.00483a80
mov eax, dword [ebp - 0x20]
cmp esi, edi
je 0x405159
cmp esi, eax
jb 0x405114
call fcn.00483a80
push 4
push ebx
push str..dll
mov ecx, esi
call fcn.004077f0
cmp eax, 0xffffffff
jne 0x40513c
push 4
push ebx
push str..exe
mov ecx, esi
call fcn.004077f0
cmp eax, 0xffffffff
je 0x405145
push esi
lea ecx, [ebp - 0x4c]
call fcn.004069e0
mov eax, dword [ebp - 0x20]
cmp esi, eax
jb 0x405154
call fcn.00483a80
mov eax, dword [ebp - 0x20]
add esi, 0x1c
jmp 0x4050f8
mov edi, 0xf
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
push 9
push str.ClientApp
lea ecx, [ebp + 0x98]
call fcn.0040e480
mov byte [ebp - 4], 0x1d
lea edx, [ebp - 0x4c]
lea ecx, [ebp + 0x98]
call fcn.00414e30
mov byte [ebp - 4], 0x1c
cmp dword [ebp + 0xb0], 0x10
jb 0x4051b0
mov eax, dword [ebp + 0x9c]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
push 5
call fcn.00419de0
push eax
call fcn.004065b0
add esp, 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
push ecx
call fcn.00455dd0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x1e
cmp dword [esi], ebx
jne 0x40520f
push str.Non_null_m_pOwnedObj
call fcn.0042c7e0
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov esi, dword [esi]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00408ff0
add esp, 8
mov byte [ebp - 4], 0x1f
mov edx, dword [esi]
push eax
push 0x51afa0
push 0x51afa0
mov ecx, esi
mov eax, dword [edx + 0x28]
call eax
mov byte [ebp - 4], 0x1e
cmp dword [ebp - 0x60], 0x10
jb 0x405251
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x74], bl
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x405291
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x405291
mov edx, dword [ebp - 0x14]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40528e
mov eax, dword [ecx]
push 1
mov edx, dword [eax]
call edx
mov dword [ebp - 0x18], ebx
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
push 1
push 0x4e24cc
lea ecx, [ebp + 0x98]
call fcn.0040e480
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x18]
push eax
call fcn.00455dd0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x21
cmp dword [esi], ebx
jne 0x4052ee
push str.Non_null_m_pOwnedObj
call fcn.0042c7e0
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [ebp + 0x98]
push eax
push 0x51afbc
push 0x51afa0
mov edx, dword [edx + 0x28]
call edx
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40533f
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40533f
mov eax, dword [ebp - 0x14]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x40533c
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x1c
mov esi, 0x10
cmp dword [ebp + 0xb0], esi
jb 0x40535f
mov ecx, dword [ebp + 0x9c]
push ecx
call fcn.004606bf
add esp, 4
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xac], ebx
mov byte [ebp + 0x9c], bl
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x4053c1
mov edi, dword [ebp - 0x44]
cmp eax, edi
je 0x4053b0
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x405397
mov eax, dword [esi - 0x14]
push eax
call fcn.004606bf
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x405386
mov eax, dword [ebp - 0x48]
push eax
call fcn.004606bf
add esp, 4
mov edi, 0xf
lea esi, [edi + 1]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 0xd
cmp dword [ebp + 0x94], esi
jb 0x4053e5
mov eax, dword [ebp + 0x80]
push eax
call fcn.004606bf
add esp, 4
mov dword [ebp + 0x94], edi
mov dword [ebp + 0x90], ebx
mov byte [ebp + 0x80], bl
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x40544b
mov edi, dword [ebp - 0x20]
cmp eax, edi
je 0x40543a
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 0x10
jb 0x405421
mov eax, dword [esi - 0x14]
push eax
call fcn.004606bf
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x405410
mov eax, dword [ebp - 0x24]
push eax
call fcn.004606bf
add esp, 4
mov edi, 0xf
lea esi, [edi + 1]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 9
lea ecx, [ebp]
call fcn.00419fe0
mov byte [ebp - 4], 2
cmp dword [ebp + 0x78], esi
jb 0x405475
mov edx, dword [ebp + 0x64]
push edx
call fcn.004606bf
add esp, 4
mov dword [ebp + 0x78], edi
mov dword [ebp + 0x74], ebx
mov byte [ebp + 0x64], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x5c], esi
jb 0x405496
mov eax, dword [ebp + 0x48]
push eax
call fcn.004606bf
add esp, 4
mov byte [ebp + 0x48], bl
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb4]
xor ecx, ebp
call fcn.0048162f
add ebp, 0xb8
mov esp, ebp
pop ebp
ret