Function at 0x42f7c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e7cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4f7f24
mov dword [esp + 0x3c], 0
call fcn.00406bd0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x38], 1
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov ecx, eax
sub ecx, esi
sar ecx, 2
test ecx, ecx
jbe 0x42f971
cmp esi, eax
jbe 0x42f843
call fcn.004ca395
mov edi, dword [ebx]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
lea ecx, [ecx]
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], esi
jbe 0x42f85d
call fcn.004ca395
mov eax, dword [ebx]
test edi, edi
je 0x42f867
cmp edi, eax
je 0x42f86c
call fcn.004ca395
cmp dword [esp + 0x28], esi
je 0x42f971
mov esi, dword [ebx + 0xc]
cmp esi, dword [ebx + 0x10]
jbe 0x42f883
call fcn.004ca395
mov eax, dword [ebx]
test eax, eax
je 0x42f88d
cmp eax, edi
je 0x42f892
call fcn.004ca395
cmp esi, dword [esp + 0x28]
je 0x42f8a9
push 2
push 0x4f7f2c
lea edx, [esp + 0x1c]
push edx
call fcn.00415640
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 2
test edi, edi
jne 0x42f966
call fcn.004ca395
xor eax, eax
mov esi, dword [esp + 0x28]
cmp esi, dword [eax + 0x10]
jb 0x42f8e1
call fcn.004ca395
mov eax, dword [esi]
push eax
push 0x4f7f34
lea edi, [esp + 0x20]
call fcn.00406e20
add esp, 8
push 0x4f7f40
push 0x4f66b8
mov ecx, edi
push ecx
call fcn.004060b0
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00415640
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f93b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42f96d
call fcn.004ca395
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x42f958
call fcn.004ca395
add dword [esp + 0x28], 4
mov edi, dword [esp + 0x24]
jmp 0x42f850
mov eax, dword [edi]
jmp 0x42f8d3
mov eax, dword [eax]
jmp 0x42f94a
push 1
push 0x4f8d54
lea edx, [esp + 0x1c]
push edx
call fcn.00415640
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push str.onDnDFile__s___d___d__
lea edi, [esp + 0x2c]
call fcn.00406e20
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 0x10
push esi
add eax, 0xffffff44
push eax
call fcn.0042d220
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f9d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f9fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc