Function at 0x4d6610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50e418
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
mov dword [esp + 0x1c], 0x80004005
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
test edx, edx
jne 0x4d6677
xor eax, eax
jmp 0x4d668f
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d6680
sub eax, edi
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x14]
push edx
call fcn.00407680
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4d66d5
lea edx, [eax - 1]
test edx, edx
jl 0x4d697f
cmp edx, eax
jg 0x4d697f
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4d66d5
cmp ax, 0x2f
je 0x4d66d5
mov edx, 0x5163bc
call fcn.004179a0
mov eax, dword [edi]
push eax
call fcn.004d7b60
mov eax, dword [esi + 0x34]
mov eax, dword [eax]
mov edi, dword [esi + 0x1c]
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x1c]
test edi, edi
je 0x4d66fe
cmp edi, eax
je 0x4d6703
call fcn.004ea2c7
cmp dword [esp + 0x28], ebx
je 0x4d6936
test edi, edi
jne 0x4d6776
call fcn.004ea2c7
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x18]
jne 0x4d6726
call fcn.004ea2c7
mov ebx, dword [esp + 0x28]
add ebx, 0xc
test edi, edi
jne 0x4d677a
call fcn.004ea2c7
mov edx, dword [esp + 0x28]
cmp edx, dword [edi + 0x18]
jne 0x4d6744
call fcn.004ea2c7
mov eax, dword [ebx]
mov ecx, 0x516240
jmp 0x4d6750
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d677e
test dx, dx
je 0x4d6772
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d677e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d6750
xor eax, eax
jmp 0x4d6783
mov eax, dword [edi]
jmp 0x4d6718
mov edi, dword [edi]
jmp 0x4d6736
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4d6898
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
cmp dword [esi + 0x3c], 0
je 0x4d67d8
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004d88c0
push eax
call fcn.004d8620
test eax, eax
jle 0x4d67d8
lea eax, [esp + 0x18]
lea edi, [esp + 0x10]
call fcn.00404f20
jmp 0x4d6866
push ebx
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
call fcn.00435480
add esp, 8
mov byte [esp + 0x38], 2
mov ecx, dword [eax]
mov edi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x4d6841
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4d6834
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4d6834
call fcn.00404eb0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4d682b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x10], esi
jmp 0x4d6841
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x14]
call fcn.00407680
mov byte [esp + 0x38], 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 0x4d6866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004d7b60
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d6898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x24]
mov eax, dword [eax]
mov ebx, dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
test ebx, ebx
je 0x4d68b8
cmp ebx, eax
je 0x4d68bd
call fcn.004ea2c7
cmp esi, edi
je 0x4d690a
test ebx, ebx
jne 0x4d6902
call fcn.004ea2c7
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4d68d6
call fcn.004ea2c7
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
push edi
call fcn.004d75c0
test eax, eax
je 0x4d691f
test ebx, ebx
jne 0x4d6906
call fcn.004ea2c7
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4d68fe
call fcn.004ea2c7
mov esi, dword [esi]
jmp 0x4d68a6
mov eax, dword [ebx]
jmp 0x4d68cc
mov eax, dword [ebx]
jmp 0x4d68f4
lea esi, [esp + 0x24]
call fcn.004dac20
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 8]
jmp 0x4d66f0
mov edi, dword [edi]
push edi
push str.ExtractMemoryFiles_WriteFile_fail__path:_ws
mov ecx, 0x546980
call fcn.004df340
add esp, 8
jmp 0x4d693e
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d6966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004029f0
int3