Function at 0x4dfb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574558
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
mov ecx, str.JPG_.jpg_.jpg
call fcn.0040ff50
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004176f0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfbe4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.PNG_.png_.png
call fcn.0040ff50
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004176f0
mov byte [esp + 0x38], 0
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 0x4dfc2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.BMP_.bmp_.bmp
call fcn.0040ff50
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 3
call fcn.004176f0
mov byte [esp + 0x38], 0
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 0x4dfc70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.GIF_.gif_.gif
call fcn.0040ff50
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 4
call fcn.004176f0
mov byte [esp + 0x38], 0
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 0x4dfcb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.All_Files_._.
call fcn.0040ff50
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 5
call fcn.004176f0
mov byte [esp + 0x38], 0
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 0x4dfcfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
test eax, eax
mov dword [esp + 0x10], 0
je 0x4dfe4c
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x24]
jbe 0x4dfd24
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x20], esi
jbe 0x4dfd34
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esi - 4]
cmp eax, dword [esp + 0x24]
lea ebx, [esp + 0x1c]
mov dword [esp + 0x18], esi
ja 0x4dfd4b
cmp eax, dword [esp + 0x20]
jae 0x4dfd51
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x1c]
add esi, 0xfffffffc
cmp eax, ebx
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
je 0x4dfd64
call ebx
cmp edi, esi
je 0x4dfe4c
cmp edi, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
jb 0x4dfd79
call ebx
test esi, esi
je 0x4dfd9d
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4dfd9d
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4dfd9d
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4dfdad
cmp edi, dword [esp + 0x24]
jb 0x4dfda5
call ebx
add edi, 4
jmp 0x4dfd24
cmp edi, dword [esp + 0x24]
jb 0x4dfdb5
call ebx
mov eax, dword [edi]
sub eax, 0x10
call fcn.00410660
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x38], 6
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4dfdde
mov edx, dword [esp + 0x24]
sub edx, eax
sar edx, 2
jne 0x4dfde8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
cmp edi, dword [esp + 0x24]
mov esi, eax
jb 0x4dfdf6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, esi
call fcn.004101e0
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4dfe10
mov eax, dword [esp + 0x24]
sub eax, edi
sar eax, 2
jne 0x4dfe1a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
call fcn.004101e0
lea eax, [ebx - 0x10]
mov dword [esp + 0x10], 1
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfe4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x4dfeaa
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x4dfe86
cmp dword [ecx - 8], 0
jge 0x4dfe76
push 0x80070057
call fcn.0040fcd0
mov dword [ecx - 0xc], 0
mov ecx, dword [ebx]
mov word [ecx], 0
jmp 0x4dfeaa
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dfe9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebx], eax
cmp dword [esp + 0x10], 0
jne 0x4dff6a
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x20], esi
jbe 0x4dfec5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x1c]
mov edi, eax
lea eax, [esi - 4]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x18], esi
ja 0x4dfede
cmp eax, dword [esp + 0x20]
jae 0x4dfee4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0xfffffffc
cmp esi, dword [edi + 8]
jb 0x4dfef2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebx
call fcn.00410240
push 0
push 0x7c
push ebx
call fcn.00412f40
mov dword [esp + 0x38], 0xffffffff
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4dff55
mov eax, dword [esp + 0x24]
cmp esi, eax
mov edi, eax
je 0x4dff4c
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dff41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4dff23
mov esi, dword [esp + 0x20]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
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
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x4dff80
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ebx, [ebx]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x20], edi
jbe 0x4dff90
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x4dfeff
cmp esi, dword [esp + 0x24]
jb 0x4dffa4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebx
call fcn.00410240
cmp esi, dword [esp + 0x24]
jb 0x4dffbd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 4
jmp 0x4dff80