Function at 0x4d6df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50eca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
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 0x4d6e57
xor eax, eax
jmp 0x4d6e6f
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d6e60
sub eax, edi
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x14]
push edx
call fcn.004076e0
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4d6eb5
lea edx, [eax - 1]
test edx, edx
jl 0x4d715f
cmp edx, eax
jg 0x4d715f
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x4d6eb5
cmp ax, 0x2f
je 0x4d6eb5
mov edx, 0x5173bc
call fcn.00417f00
mov eax, dword [edi]
push eax
call fcn.004d8340
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 0x4d6ede
cmp edi, eax
je 0x4d6ee3
call fcn.004ea9f7
cmp dword [esp + 0x28], ebx
je 0x4d7116
test edi, edi
jne 0x4d6f56
call fcn.004ea9f7
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x18]
jne 0x4d6f06
call fcn.004ea9f7
mov ebx, dword [esp + 0x28]
add ebx, 0xc
test edi, edi
jne 0x4d6f5a
call fcn.004ea9f7
mov edx, dword [esp + 0x28]
cmp edx, dword [edi + 0x18]
jne 0x4d6f24
call fcn.004ea9f7
mov eax, dword [ebx]
mov ecx, 0x517240
jmp 0x4d6f30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d6f5e
test dx, dx
je 0x4d6f52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d6f5e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d6f30
xor eax, eax
jmp 0x4d6f63
mov eax, dword [edi]
jmp 0x4d6ef8
mov edi, dword [edi]
jmp 0x4d6f16
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4d7078
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
cmp dword [esi + 0x3c], 0
je 0x4d6fb8
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004d90a0
push eax
call fcn.004d8e00
test eax, eax
jle 0x4d6fb8
lea eax, [esp + 0x18]
lea edi, [esp + 0x10]
call fcn.00405050
jmp 0x4d7046
push ebx
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
call fcn.00435bd0
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 0x4d7021
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4d7014
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4d7014
call fcn.00404fe0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4d700b
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 0x4d7021
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x14]
call fcn.004076e0
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 0x4d7046
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.004d8340
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 0x4d7078
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 0x4d7098
cmp ebx, eax
je 0x4d709d
call fcn.004ea9f7
cmp esi, edi
je 0x4d70ea
test ebx, ebx
jne 0x4d70e2
call fcn.004ea9f7
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4d70b6
call fcn.004ea9f7
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
push edi
call fcn.004d7da0
test eax, eax
je 0x4d70ff
test ebx, ebx
jne 0x4d70e6
call fcn.004ea9f7
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4d70de
call fcn.004ea9f7
mov esi, dword [esi]
jmp 0x4d7086
mov eax, dword [ebx]
jmp 0x4d70ac
mov eax, dword [ebx]
jmp 0x4d70d4
lea esi, [esp + 0x24]
call fcn.004db360
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 8]
jmp 0x4d6ed0
mov edi, dword [edi]
push edi
push str.ExtractMemoryFiles_WriteFile_fail__path:_ws
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x4d711e
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 0x4d7146
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.00402a90
int3