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

Disassembly:
push 0xffffffffffffffff
push 0x5a8d9d
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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.00474ab0
mov dword [esp + 0x144], 0
mov esi, dword [esp + 0x30]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x466cf9
lea ecx, [eax - 1]
test ecx, ecx
jl 0x466e09
cmp ecx, eax
jg 0x466e09
movzx eax, word [esi + ecx*2]
cmp ax, 0x5c
je 0x466cf9
push 0x5c
call fcn.00404400
mov esi, dword [esp + 0x30]
lea ebx, [esp + 0x34]
call fcn.004747c0
mov byte [esp + 0x144], 1
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 0xc]
xor ebx, ebx
cmp eax, ebx
jle 0x466d3f
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x466e09
cmp ecx, eax
jg 0x466e09
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x466d3f
push 0x5c
lea edi, [esp + 0x38]
call fcn.00404400
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.00467ed0
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x144], 3
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x144], 4
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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.004035d0
call fcn.0040cbf0
mov eax, dword [0x5fe584]
mov eax, dword [eax + 0x434]
cmp eax, 2
mov dword [0x5fe580], 1
je 0x466e13
cmp eax, 8
je 0x466e13
push 0xa
push str.phrase.ini
mov ecx, edi
push ecx
jmp 0x466e1f
push 0x80070057
call fcn.00404550
push 0xe
push 0x5c19b8
lea edx, [esp + 0x24]
push edx
call fcn.00403fc0
lea eax, [esp + 0x30]
lea edi, [esp + 0x38]
call fcn.004035d0
push 0xa
push str.phrase.ini
mov eax, edi
push eax
call fcn.00403fc0
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x106
or eax, ecx
jge 0x466e66
mov ecx, 0x106
lea eax, [esp + 0x3c]
call fcn.00403d50
mov ebp, dword [esp + 0x3c]
push ebp
push ebx
push 0x5c1b88
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, 0x104
cmp dword [ebp - 8], eax
jl 0x466e09
mov dword [ebp - 0xc], eax
mov eax, ebp
mov word [ebp + 0x208], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x466e90
sub eax, edx
sar eax, 1
js 0x466e09
cmp eax, dword [ebp - 8]
jg 0x466e09
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 0x466ed6
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x466ed9
push ebp
call esi
lea ecx, [esp + 0xa4]
push ecx
mov edi, ebp
call fcn.004d1580
push str.Version
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x14c], 6
call fcn.004d1cc0
mov edi, eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
cmp edi, ebx
mov byte [esp + 0x144], 7
jne 0x4672f1
cmp byte [esp + 0xd9], 0
je 0x466f41
lea eax, [esp + 0xa4]
push eax
call fcn.004d19f0
lea ecx, [esp + 0xc0]
call fcn.004d2a90
lea ecx, [esp + 0xa8]
call fcn.004688d0
push 0x5bcc3c
xor ebx, ebx
lea eax, [esp + 0xa8]
call fcn.00404050
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.004d1700
push 0x5c0608
push str.Version
lea ecx, [esp + 0xac]
push ecx
call fcn.004d2080
mov ecx, 0x2b1
lea esi, [esp + 0xa4]
call fcn.004d22e0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xdc]
push edx
call fcn.004d1580
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.004d1ab0
lea esp, [esp]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46716e
cmp eax, dword [esp + 0x28]
je 0x46716e
mov edx, dword [eax]
add eax, 8
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], edx
call fcn.004035d0
mov eax, edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00466a30
add esp, 8
cmp eax, ebx
je 0x46709d
mov ebx, eax
lea esi, [esp + 0x44]
call fcn.004689f0
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x18]
push 0
push edx
push ebp
lea ecx, [esp + 0x80]
call fcn.00468970
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x467091
mov dword [ecx], eax
mov dword [esp + 0x78], eax
xor ebx, ebx
jmp 0x467020
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
xor ebx, ebx
jmp 0x467020
lea eax, [esp + 0x40]
push str.__D:
push eax
lea ecx, [esp + 0x20]
call fcn.0043bdd0
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 0x467113
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x467100
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x467100
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4670f7
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 0x467113
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
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 0x46713b
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.00468970
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
je 0x467161
mov dword [ecx], eax
mov dword [esp + 0x78], eax
jmp 0x467020
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
jmp 0x467020
lea edx, [esp + 0x74]
push edx
push str.Default
lea eax, [esp + 0xac]
push eax
call fcn.004d1d70
lea ecx, [esp + 0x74]
call fcn.004688d0
lea ecx, [esp + 0xdc]
push ecx
mov byte [esp + 0x148], 7
call fcn.004d1650
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 0x4671fb
cmp edx, ecx
je 0x4671fb
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4671fd
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4671f0
jmp 0x4671fd
xor edx, edx
cmp edx, ebx
mov esi, edx
je 0x4672a4
jmp 0x467214
mov ecx, dword [esp + 0x58]
cmp esi, ebx
mov edx, esi
jne 0x46721e
xor esi, esi
jmp 0x46725c
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x46723d
cmp eax, ebx
je 0x46721a
mov esi, eax
mov eax, dword [eax + 0xc]
cmp eax, ecx
je 0x46725c
mov esi, eax
mov eax, dword [esi + 0xc]
cmp eax, ecx
jne 0x467232
jmp 0x46725c
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x467258
cmp esi, dword [eax + 0x10]
jne 0x467254
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x467244
jmp 0x467258
cmp eax, ecx
jne 0x46725a
xor eax, eax
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00465970
mov edx, dword [esp + 0x118]
mov ebp, dword [esp + 0x18]
push ebx
push edx
push ebp
lea ecx, [esp + 0x120]
call fcn.00468970
mov ecx, dword [esp + 0x118]
cmp ecx, ebx
je 0x46728e
mov dword [ecx], eax
jmp 0x467295
mov dword [esp + 0x114], eax
cmp esi, ebx
mov dword [esp + 0x118], eax
jne 0x467210
lea eax, [esp + 0x114]
push eax
push str.Custom
lea ecx, [esp + 0xac]
push ecx
call fcn.004d1d70
lea ecx, [esp + 0x114]
call fcn.004688d0
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 0x4677f8
mov ecx, dword [ebp]
push ebp
jmp 0x4677f1
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.004d1ab0
push str.DefaultVersion
lea ecx, [esp + 0xa8]
push ecx
call fcn.004d1cc0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xdc]
push edx
call fcn.004d1580
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.004d1ab0
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x4674f7
cmp edi, dword [esp + 0x28]
je 0x4674f7
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4673fc
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x4673eb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4673eb
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4673e2
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 0x4673fc
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00466a30
add esp, 8
test eax, eax
je 0x467429
mov ebx, eax
lea esi, [esp + 0x44]
call fcn.004689f0
mov eax, dword [esp + 0x60]
push 0
push eax
jmp 0x4674c9
lea ecx, [esp + 0x40]
push str.__D:
push ecx
lea ecx, [esp + 0x20]
call fcn.0043bdd0
add esp, 8
mov byte [esp + 0x144], 0xe
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x46749a
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x467489
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x467489
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x467480
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 0x46749a
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
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 0x4674c2
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.00468970
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4674e8
mov dword [ecx], eax
mov dword [esp + 0x60], eax
xor ebx, ebx
jmp 0x467392
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
xor ebx, ebx
jmp 0x467392
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x148], 0xc
call fcn.004d1650
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 0x2b1
mov word [esp + 0x120], bx
call fcn.0057ae9c
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
push str.DefaultVersion
lea edx, [esp + 0xac]
push edx
call fcn.004d2080
lea eax, [esp + 0x5c]
push eax
push str.Default
lea ecx, [esp + 0xac]
push ecx
call fcn.004d1d70
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.004d1ab0
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4676d3
cmp edi, dword [esp + 0x28]
je 0x4676d3
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x467662
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x467651
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x467651
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x467648
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 0x467662
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00466a30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4675f8
mov eax, dword [esp + 0x90]
push 0
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.00468970
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x4676b7
mov dword [ecx], eax
lea esi, [esp + 0x44]
mov dword [esp + 0x90], eax
call fcn.004689f0
jmp 0x4675f8
lea esi, [esp + 0x44]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.004689f0
jmp 0x4675f8
mov edx, dword [esp + 0x44]
test edx, edx
mov ecx, dword [esp + 0x58]
je 0x4676fb
cmp edx, ecx
je 0x4676fb
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4676fd
lea ebx, [ebx]
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4676f0
jmp 0x4676fd
xor edx, edx
test edx, edx
mov esi, edx
je 0x4677a5
jmp 0x467714
mov ecx, dword [esp + 0x58]
test esi, esi
mov edx, esi
jne 0x46771e
xor esi, esi
jmp 0x46775c
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x46773d
test eax, eax
je 0x46771a
mov esi, eax
mov eax, dword [eax + 0xc]
cmp eax, ecx
je 0x46775c
mov esi, eax
mov eax, dword [esi + 0xc]
cmp eax, ecx
jne 0x467732
jmp 0x46775c
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x467758
cmp esi, dword [eax + 0x10]
jne 0x467754
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x467744
jmp 0x467758
cmp eax, ecx
jne 0x46775a
xor eax, eax
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00465970
mov ecx, dword [esp + 0x90]
mov ebp, dword [esp + 0x18]
push 0
push ecx
push ebp
lea ecx, [esp + 0x98]
call fcn.00468970
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x46778f
mov dword [ecx], eax
jmp 0x467796
mov dword [esp + 0x8c], eax
test esi, esi
mov dword [esp + 0x90], eax
jne 0x467710
lea edx, [esp + 0x8c]
push edx
push str.Custom
lea eax, [esp + 0xac]
push eax
call fcn.004d1d70
lea ecx, [esp + 0x8c]
call fcn.004688d0
lea ecx, [esp + 0x5c]
call fcn.004688d0
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 0x4677f8
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.004d1650
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
push edi
push esi
call fcn.004a9610
mov ebx, eax
mov byte [esp + 0x14c], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x467849
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 0x46786d
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 0x467891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x44]
call fcn.004af2c0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4678ab
push eax
call fcn.0057876f
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 0x4678d3
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 0x4678fe
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.005787fd
add esp, 0x134
ret 4