Function at 0x502aa0
Capabilities:
Move file

Disassembly:
sub esp, 0x230
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [0x62c623]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x48]
push ebx
push ebp
push esi
push edi
push 0
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
mov dword [esp + 0x34], edx
call fcn.005025d0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x502e24
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x502aff
mov eax, str.h_o_l1
jmp 0x502b8e
mov ecx, dword [0x62c623]
movsx eax, word [ecx + 0x36]
add eax, dword [ecx + 0x24]
mov edx, dword [str.public]
mov esi, dword [edx + 0x13b]
xor edx, edx
div esi
mov ecx, dword [ecx + 0x38]
add ecx, eax
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x28], ecx
mov word [esp + 0x26], dx
test eax, eax
jg 0x502b59
jl 0x502b59
movsx eax, word [esp + 0x1e]
movsx ecx, dx
sub eax, ecx
jne 0x502b59
lea edx, [esp + 0x2c]
push edx
call fcn.0046fba0
add esp, 4
test eax, eax
jne 0x502b5f
lea eax, [esp + 0x24]
jmp 0x502b5f
lea eax, [edi + 0x11c]
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
call fcn.005025d0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x502e24
mov eax, dword [esp + 0x18]
test eax, eax
je 0x502ba8
cmp eax, edi
jbe 0x502ba8
mov eax, str.h_o_l2
push eax
push 0x33b7
push 0x1b
call fcn.00406f10
add esp, 0xc
mov eax, 0x1b
jmp 0x502e39
mov edx, dword [0x62c60b]
mov edi, dword [0x62c617]
imul edx, edx, 0x12c
cmp byte [esp + 0x244], 0
lea ecx, [edx + edi - 0x12c]
mov dword [esp + 0x10], ecx
jne 0x502ca0
lea esi, [eax - 0x12c]
mov dword [esp + 0x14], esi
test eax, eax
je 0x502d4e
cmp eax, edi
jbe 0x502d4e
mov ecx, dword [0x62c623]
cmp byte [ecx + 0x5d], 0
jne 0x502d4e
xor bl, bl
cmp edi, esi
ja 0x502d05
mov ebp, edi
lea edx, [esp + 0x34]
sub ebp, edx
nop
cmp byte [edi + 0x102], 0
je 0x502cf1
cmp byte [esp + 0x244], 0
je 0x502c3e
cmp edi, esi
jne 0x502c3e
call fcn.00500940
mov esi, eax
test esi, esi
jne 0x502e24
mov esi, dword [esp + 0x14]
cmp byte [0x6d3918], 0
je 0x502cdb
cmp byte [0x62c605], 0
jne 0x502cab
cmp byte [edi + 0x101], 0
je 0x502ce8
mov ecx, dword [edi + 0x107]
mov edx, dword [0x6a0b30]
lea eax, [esp + 0x34]
push eax
push str..arc
push ecx
push edx
call fcn.005588f0
lea eax, [esp + 0x44]
push eax
push edi
call sub.MSVCR90.dll_rename
add esp, 0x18
test eax, eax
jne 0x502d05
lea eax, [esp + 0x34]
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x502c94
jmp 0x502ce8
mov dword [esp + 0x14], ecx
mov esi, ecx
jmp 0x502bfd
mov edx, dword [esp + 0x248]
test edx, edx
je 0x502cdb
mov eax, dword [edi + 0x110]
mov ecx, dword [edx]
cmp eax, ecx
jb 0x502cdb
jne 0x502ce8
add edx, 4
push edx
lea ecx, [edi + 0x114]
push ecx
call fcn.00500af0
add esp, 8
test eax, eax
jg 0x502ce8
push edi
call sub.MSVCR90.dll__unlink
add esp, 4
test eax, eax
jne 0x502d05
mov bl, 1
mov byte [edi + 0x101], 0
add edi, 0x12c
add ebp, 0x12c
cmp edi, esi
jbe 0x502c10
cmp byte [esp + 0x244], 0
je 0x502d18
cmp byte [0x6d3918], 0
je 0x502d3e
push 0
push 1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0
call fcn.005025d0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x502e24
mov esi, dword [esp + 0x14]
test bl, bl
je 0x502d4a
mov eax, dword [0x62c623]
inc dword [eax + 0xc]
mov eax, dword [esp + 0x18]
cmp byte [0x62c605], 0
je 0x502e37
mov ecx, dword [str.public]
cmp byte [ecx + 0x158], 0
jne 0x502df8
test eax, eax
je 0x502df8
lea edi, [esi + 0x12c]
cmp edi, dword [esp + 0x10]
ja 0x502df8
mov ebp, edi
lea edx, [esp + 0x138]
sub ebp, edx
lea ecx, [ecx]
cmp byte [edi + 0x102], 0
jne 0x502de6
push 0
lea eax, [esp + 0x13c]
push eax
push edi
call fcn.0056af80
mov ecx, dword [0x6a0b24]
add esp, 4
push eax
push 0
push ecx
call fcn.0056ae90
add esp, 0x10
push eax
push edi
call fcn.0056b200
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x502e24
lea eax, [esp + 0x138]
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x502dd5
mov byte [edi + 0x102], 1
add edi, 0x12c
add ebp, 0x12c
cmp edi, dword [esp + 0x10]
jbe 0x502d90
cmp byte [0x62c606], 0
jne 0x502e37
call fcn.00500940
mov esi, eax
test esi, esi
jne 0x502e24
mov edx, dword [0x6a0b2c]
push eax
push eax
push eax
push edx
call fcn.00571a30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x502e37
push 0x33b7
push 0
call fcn.00406f10
add esp, 8
mov eax, esi
jmp 0x502e39
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x230
ret