Function at 0x41d6b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0438
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x20], edi
cmp byte [eax], 0
je 0x41d980
mov esi, dword [ebp + 0x10]
test esi, 0xffff0000
je 0x41d980
lea ecx, [ebp - 0x18]
push ecx
call fcn.0041bb70
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
jne 0x41d744
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4a9f0c
call fcn.0041bf30
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00417130
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41d77c
cmp ebx, 2
jne 0x41d78a
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4a9f14
call fcn.0041bf30
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00417130
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d7b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41d7b7
cmp ebx, 3
jne 0x41d7b7
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4a9f1c
call fcn.0041bf30
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00417130
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043ec30
lea edx, [ebp - 0x14]
push edx
call fcn.0041bb70
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
push ecx
push esi
push eax
push str._s_s._s
lea edi, [ebp - 0x14]
call fcn.00417b50
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
push edx
call esi
cmp eax, 0xffffffff
jne 0x41d82c
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041bf30
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00417130
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d82c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call esi
cmp eax, 0xffffffff
je 0x41d928
mov bl, 6
push 0x10
mov byte [ebp - 4], bl
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x41d85a
mov ecx, dword [ebp - 0x14]
mov esi, eax
call fcn.0041dfd0
mov esi, eax
jmp 0x41d85c
xor esi, esi
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], esi
call fcn.0041adf0
push esi
lea edx, [ebp - 0x28]
push esi
push edx
call fcn.00418230
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
test ecx, ecx
jne 0x41d913
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
test eax, eax
je 0x41d8a9
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0041b080
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d8d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d8fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0041b080
mov dword [ebp - 4], 4
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d94b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d983
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41d983
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x41db67
lea edx, [ebp + 0x14]
push edx
call fcn.0041bb70
mov dword [ebp - 4], 9
cmp ebx, 1
jne 0x41d9e7
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x4a9f38
call fcn.0041bf30
lea eax, [ebp - 0x1c]
lea edi, [ebp + 0x14]
mov byte [ebp - 4], 0xa
call fcn.00417130
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41da2e
cmp ebx, 2
jne 0x41da00
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, str.JPEG
call fcn.0041bf30
mov byte [ebp - 4], 0xb
jmp 0x41da17
cmp ebx, 3
jne 0x41da5a
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4a9f4c
call fcn.0041bf30
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x1c]
lea edi, [ebp + 0x14]
call fcn.00417130
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.0043ec30
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, ecx
test edx, 0xffff0000
jne 0x41da88
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.0041db90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
jmp 0x41d8e1
mov edi, dword [ebp + 0xc]
mov dword [edi], 0
lea eax, [ebp + 0x14]
mov dword [edi + 4], 0
call fcn.0043ec30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edx
call fcn.0041bf30
mov eax, 4
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call fcn.004191a0
push eax
mov ecx, str.IMG_
mov byte [ebp - 4], 0xe
call fcn.0041d2b0
test eax, eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x20]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41daf6
mov ecx, dword [ebp + 0x10]
push ecx
push str.IMG__s
lea edi, [ebp - 0x1c]
call fcn.00417b50
add esp, 8
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push edx
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041db90
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10