Function at 0x45c930
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x609cad
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x14c]
lea edi, [esp + 0x30]
call fcn.0047ac70
mov dword [esp + 0x144], 0
mov esi, dword [esp + 0x30]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x45c9b9
lea ecx, [eax - 1]
test ecx, ecx
jl 0x45cafd
cmp ecx, eax
jg 0x45cafd
movzx eax, word [esi + ecx*2]
cmp ax, 0x5c
je 0x45c9b9
push 0x5c
call fcn.0040af90
mov esi, dword [esp + 0x30]
lea ebx, [esp + 0x34]
call fcn.0047a980
mov byte [esp + 0x144], 1
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 0xc]
xor ebx, ebx
cmp eax, ebx
jle 0x45c9ff
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x45cafd
cmp ecx, eax
jg 0x45cafd
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x45c9ff
push 0x5c
lea edi, [esp + 0x38]
call fcn.0040af90
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x58], ebx
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
mov byte [esp + 0x148], 2
call fcn.0045dc00
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x144], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x144], 4
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
lea edi, [esp + 0x1c]
mov byte [esp + 0x144], 5
call fcn.0040ab90
test byte [0x6809d0], 1
jne 0x45cad0
or dword [0x6809d0], 1
cmp dword [0x678ec4], ebx
jne 0x45cac3
cmp dword [0x678ec8], ebx
jne 0x45cac3
mov dword [0x678ec4], 0x6790b8
push 0x6131e0
call fcn.005d268a
add esp, 4
mov eax, dword [0x678ec4]
mov eax, dword [eax + 0x434]
cmp eax, 2
mov dword [0x678ec0], 1
je 0x45cb07
cmp eax, 8
je 0x45cb07
push 0xa
push str.phrase.ini
lea ecx, [esp + 0x24]
push ecx
jmp 0x45cb13
push 0x80070057
call fcn.00403650
push 0xe
push 0x629038
lea edx, [esp + 0x24]
push edx
call fcn.0040aee0
lea eax, [esp + 0x30]
lea edi, [esp + 0x38]
call fcn.0040ab90
push 0xa
push str.phrase.ini
mov eax, edi
push eax
call fcn.0040aee0
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x106
or eax, ecx
jge 0x45cb5a
mov ecx, 0x106
lea eax, [esp + 0x3c]
call fcn.00403540
mov ebp, dword [esp + 0x3c]
push ebp
push ebx
push 0x629260
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, 0x104
cmp dword [ebp - 8], eax
jl 0x45cafd
mov dword [ebp - 0xc], eax
mov eax, ebp
mov word [ebp + 0x208], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45cb81
sub eax, edx
sar eax, 1
js 0x45cafd
cmp eax, dword [ebp - 8]
jg 0x45cafd
mov edi, dword [esp + 0x38]
mov dword [ebp - 0xc], eax
push edi
mov word [ebp + eax*2], bx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x45cbc7
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x45cbca
push ebp
call esi
lea ecx, [esp + 0xa4]
push ecx
mov edi, ebp
call fcn.0050f180
push 0x6291fc
push str.Properties
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x150], 6
call fcn.0050fb90
mov edi, eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
cmp edi, ebx
mov byte [esp + 0x144], 7
jne 0x45cff1
cmp byte [esp + 0xd9], 0
je 0x45cc37
lea eax, [esp + 0xa4]
push eax
call fcn.0050f8c0
lea ecx, [esp + 0xc0]
call fcn.004cb9a0
lea ecx, [esp + 0xa8]
call fcn.0045f230
push 0x6244e0
xor ebx, ebx
lea eax, [esp + 0xa8]
call fcn.004037a0
mov edi, dword [esp + 0x3c]
push edi
mov byte [esp + 0xdc], bl
mov byte [esp + 0xdd], bl
call esi
mov ecx, edi
lea edx, [esp + 0xa4]
call fcn.0050f300
push 0x628b9c
push 0x6291fc
push str.Properties
lea ecx, [esp + 0xb0]
push ecx
call fcn.0050ffa0
mov ecx, 0x454
lea esi, [esp + 0xa4]
call fcn.00510210
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xdc]
push edx
call fcn.0050f180
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0xa
lea eax, [esp + 0x20]
push eax
push str.Default
lea ecx, [esp + 0xe4]
push ecx
mov byte [esp + 0x150], 9
call fcn.0050f980
jmp 0x45cd20
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x45ce6e
cmp eax, dword [esp + 0x28]
je 0x45ce6e
mov edx, dword [eax]
add eax, 8
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], edx
call fcn.0040ab90
mov eax, edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0045c6f0
add esp, 8
cmp eax, ebx
je 0x45cd9d
mov ebx, eax
lea esi, [esp + 0x44]
call fcn.0045f350
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x18]
push 0
push edx
push ebp
lea ecx, [esp + 0x80]
call fcn.0045f2d0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x45cd91
mov dword [ecx], eax
mov dword [esp + 0x78], eax
xor ebx, ebx
jmp 0x45cd20
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
xor ebx, ebx
jmp 0x45cd20
lea eax, [esp + 0x40]
push str.__D:
push eax
lea ecx, [esp + 0x20]
call fcn.00453450
add esp, 8
mov byte [esp + 0x144], 0xa
mov ecx, dword [eax]
mov ebp, dword [esp + 0x18]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
je 0x45ce13
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x45ce00
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x45ce00
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x45cdf7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebp, [esi + 0x10]
mov dword [esp + 0x18], ebp
jmp 0x45ce13
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004037a0
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0x144], 9
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ce3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
push ebx
push ecx
push ebp
lea ecx, [esp + 0x80]
call fcn.0045f2d0
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
je 0x45ce61
mov dword [ecx], eax
mov dword [esp + 0x78], eax
jmp 0x45cd20
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
jmp 0x45cd20
lea edx, [esp + 0x74]
push edx
push str.Default
lea eax, [esp + 0xac]
push eax
call fcn.0050fc90
lea ecx, [esp + 0x74]
call fcn.0045f230
lea ecx, [esp + 0xdc]
push ecx
mov byte [esp + 0x148], 7
call fcn.0050f250
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], 0xa
mov byte [esp + 0x144], 0xb
mov edx, dword [esp + 0x44]
cmp edx, ebx
mov ecx, dword [esp + 0x58]
je 0x45cefb
cmp edx, ecx
je 0x45cefb
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x45cefd
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x45cef0
jmp 0x45cefd
xor edx, edx
cmp edx, ebx
mov esi, edx
je 0x45cfa4
jmp 0x45cf14
mov ecx, dword [esp + 0x58]
cmp esi, ebx
mov edx, esi
jne 0x45cf1e
xor esi, esi
jmp 0x45cf5c
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x45cf3d
cmp eax, ebx
je 0x45cf1a
mov esi, eax
mov eax, dword [eax + 0xc]
cmp eax, ecx
je 0x45cf5c
mov esi, eax
mov eax, dword [esi + 0xc]
cmp eax, ecx
jne 0x45cf32
jmp 0x45cf5c
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x45cf58
cmp esi, dword [eax + 0x10]
jne 0x45cf54
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x45cf44
jmp 0x45cf58
cmp eax, ecx
jne 0x45cf5a
xor eax, eax
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.0045a910
mov edx, dword [esp + 0x118]
mov ebp, dword [esp + 0x18]
push ebx
push edx
push ebp
lea ecx, [esp + 0x120]
call fcn.0045f2d0
mov ecx, dword [esp + 0x118]
cmp ecx, ebx
je 0x45cf8e
mov dword [ecx], eax
jmp 0x45cf95
mov dword [esp + 0x114], eax
cmp esi, ebx
mov dword [esp + 0x118], eax
jne 0x45cf10
lea eax, [esp + 0x114]
push eax
push str.Custom
lea ecx, [esp + 0xac]
push ecx
call fcn.0050fc90
lea ecx, [esp + 0x114]
call fcn.0045f230
add ebp, 0xfffffff0
mov byte [esp + 0x144], 6
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x45d4f8
mov ecx, dword [ebp]
push ebp
jmp 0x45d4f1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0xa
lea edx, [esp + 0x20]
push edx
push str.Default
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x150], 0xc
call fcn.0050f980
push str.DefaultVersion
push str.Properties
lea ecx, [esp + 0xac]
push ecx
call fcn.0050fb90
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xdc]
push edx
call fcn.0050f180
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x148], 0xd
push str.Default
lea ecx, [esp + 0xe4]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call fcn.0050f980
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x45d1fc
cmp edi, dword [esp + 0x28]
je 0x45d1fc
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x45d101
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x45d0f0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45d0f0
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x45d0e7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x18], ebp
jmp 0x45d101
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004037a0
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.0045c6f0
add esp, 8
test eax, eax
je 0x45d12e
mov ebx, eax
lea esi, [esp + 0x44]
call fcn.0045f350
mov eax, dword [esp + 0x60]
push 0
push eax
jmp 0x45d1ce
lea ecx, [esp + 0x40]
push str.__D:
push ecx
lea ecx, [esp + 0x20]
call fcn.00453450
add esp, 8
mov byte [esp + 0x144], 0xe
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x45d19f
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x45d18e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45d18e
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x45d185
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x18], ebp
jmp 0x45d19f
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004037a0
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x144], 0xd
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d1c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
push 0
push ecx
push ebp
lea ecx, [esp + 0x68]
call fcn.0045f2d0
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x45d1ed
mov dword [ecx], eax
mov dword [esp + 0x60], eax
xor ebx, ebx
jmp 0x45d097
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
xor ebx, ebx
jmp 0x45d097
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x148], 0xc
call fcn.0050f250
xor eax, eax
mov dword [esp + 0x116], eax
mov dword [esp + 0x11a], eax
mov dword [esp + 0x11e], eax
mov dword [esp + 0x122], eax
mov dword [esp + 0x126], eax
mov dword [esp + 0x12a], eax
mov dword [esp + 0x12e], eax
mov word [esp + 0x132], ax
push 0xa
lea eax, [esp + 0x118]
push eax
push 0x454
mov word [esp + 0x120], bx
call fcn.005d378a
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
push str.DefaultVersion
push str.Properties
lea edx, [esp + 0xb0]
push edx
call fcn.0050ffa0
lea eax, [esp + 0x5c]
push eax
push str.Default
lea ecx, [esp + 0xac]
push ecx
call fcn.0050fc90
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], 0xa
lea edx, [esp + 0x20]
push edx
push str.Custom
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x150], 0xf
call fcn.0050f980
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x45d3dd
cmp edi, dword [esp + 0x28]
je 0x45d3dd
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x45d36c
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x45d35b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45d35b
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x45d352
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x18], ebp
jmp 0x45d36c
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004037a0
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.0045c6f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45d302
mov eax, dword [esp + 0x90]
push 0
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.0045f2d0
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x45d3c1
mov dword [ecx], eax
lea esi, [esp + 0x44]
mov dword [esp + 0x90], eax
call fcn.0045f350
jmp 0x45d302
lea esi, [esp + 0x44]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.0045f350
jmp 0x45d302
mov edx, dword [esp + 0x44]
test edx, edx
mov ecx, dword [esp + 0x58]
je 0x45d3ff
cmp edx, ecx
je 0x45d3ff
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x45d401
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x45d3f4
jmp 0x45d401
xor edx, edx
test edx, edx
mov esi, edx
je 0x45d4a5
jmp 0x45d414
mov ecx, dword [esp + 0x58]
test esi, esi
mov edx, esi
jne 0x45d41e
xor esi, esi
jmp 0x45d45c
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x45d43d
test eax, eax
je 0x45d41a
mov esi, eax
mov eax, dword [eax + 0xc]
cmp eax, ecx
je 0x45d45c
mov esi, eax
mov eax, dword [esi + 0xc]
cmp eax, ecx
jne 0x45d432
jmp 0x45d45c
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x45d458
cmp esi, dword [eax + 0x10]
jne 0x45d454
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x45d444
jmp 0x45d458
cmp eax, ecx
jne 0x45d45a
xor eax, eax
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.0045a910
mov ecx, dword [esp + 0x90]
mov ebp, dword [esp + 0x18]
push 0
push ecx
push ebp
lea ecx, [esp + 0x98]
call fcn.0045f2d0
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x45d48f
mov dword [ecx], eax
jmp 0x45d496
mov dword [esp + 0x8c], eax
test esi, esi
mov dword [esp + 0x90], eax
jne 0x45d410
lea edx, [esp + 0x8c]
push edx
push str.Custom
lea eax, [esp + 0xac]
push eax
call fcn.0050fc90
lea ecx, [esp + 0x8c]
call fcn.0045f230
lea ecx, [esp + 0x5c]
call fcn.0045f230
lea eax, [ebp - 0x10]
mov byte [esp + 0x144], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d4f8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa4]
push ecx
mov byte [esp + 0x148], 5
call fcn.0050f250
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
push edi
push esi
call fcn.004c07f0
add esp, 8
mov ebx, eax
call fcn.00474740
mov byte [esp + 0x144], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d54e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x144], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d572
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x144], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x44]
call fcn.004c6cd0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x45d5b0
push eax
call fcn.005d27e0
add esp, 4
mov byte [esp + 0x144], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d5d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x144], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.005d28b3
add esp, 0x134
ret 4