Function at 0x42f360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497c3a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
call fcn.00418900
mov dword [esp + 0x48], 0
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea esi, [esp + 0x24]
mov byte [esp + 0x48], 1
call fcn.004136d0
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, 0x4a780c
mov byte [esp + 0x50], 2
call fcn.0040d090
add esp, 8
mov byte [esp + 0x48], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f3fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.0042fbc0
test eax, eax
jbe 0x42f5c8
mov dword [esp + 0x1c], esi
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x42f428
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x42f42d
call fcn.0045f752
mov eax, dword [edi + 4]
add eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ebx, [esp + 0x28]
call fcn.00416b70
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, str..txt
mov byte [esp + 0x58], 5
call fcn.0040d090
add esp, 0x10
mov byte [esp + 0x48], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x42f4ae
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x42f4a1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42f4a1
call fcn.00401ec0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x42f498
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x42f4ae
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00401f30
mov byte [esp + 0x48], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f4d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f4f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
push str..old.txt
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401ff0
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x38]
call fcn.0041ac10
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
push 1
mov dword [esp + 0x40], 0
mov dword [eax], eax
mov eax, dword [esp + 0x3c]
push ebp
lea ecx, [esp + 0x38]
push ecx
mov dword [eax + 8], eax
call fcn.00418aa0
mov eax, dword [edi + 4]
test eax, eax
je 0x42f55c
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
cmp dword [esp + 0x18], ecx
jb 0x42f561
call fcn.0045f752
mov esi, dword [edi + 4]
add esi, dword [esp + 0x1c]
push 0x4a77a0
lea edx, [esp + 0x34]
push edx
mov ecx, 0x4a7500
call fcn.004197b0
add esi, 4
test eax, eax
jne 0x42f587
xor ecx, ecx
jmp 0x42f59f
mov ecx, eax
lea ebx, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x42f590
sub ecx, ebx
sar ecx, 1
push eax
mov ebx, ecx
mov eax, esi
call fcn.00401f30
mov esi, dword [esp + 0x18]
add dword [esp + 0x1c], 0x10
add esi, 1
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.0042fbc0
cmp esi, eax
jb 0x42f413
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f5ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x48], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f60e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x34]
mov dword [esp + 0x48], 7
call fcn.0041af50
mov dword [esp + 0x48], 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 0x42f647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret