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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a16c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
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 esi, esi
mov dword [ebp - 0x1c], esi
cmp byte [eax], 0
je 0x41d572
mov ebx, dword [ebp + 0x10]
test ebx, 0xffff0000
je 0x41d572
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041b8b0
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x41d345
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x4abb90
call fcn.0041be20
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00417620
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
jmp 0x41d37e
cmp eax, 2
jne 0x41d38c
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x4abb98
call fcn.0041be20
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00417620
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 0x41d3ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41d3ba
cmp eax, 3
jne 0x41d3ba
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x4abba0
call fcn.0041be20
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00417620
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0041b950
lea edx, [ebp - 0x18]
push edx
call fcn.0041b8b0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
push ecx
push ebx
push eax
push str._s_s._s
lea edi, [ebp - 0x18]
call fcn.00417250
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
push edx
call esi
cmp eax, 0xffffffff
jne 0x41d42e
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0041be20
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00417620
mov byte [ebp - 4], 4
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 0x41d42e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call esi
cmp eax, 0xffffffff
je 0x41d527
mov bl, 6
push 0x10
mov byte [ebp - 4], bl
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x41d45c
mov ecx, dword [ebp - 0x18]
mov esi, eax
call fcn.0041db70
mov esi, eax
jmp 0x41d45e
xor esi, esi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], esi
call fcn.0041a7f0
push esi
lea edx, [ebp - 0x24]
push esi
push edx
call fcn.0043ed50
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
test ecx, ecx
jne 0x41d515
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
test eax, eax
je 0x41d4ab
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041aa50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d4d9
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d4ff
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 - 0x24]
mov byte [ebp - 4], bl
call fcn.0041aa50
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0
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 0x41d54a
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], esi
je 0x41d70d
lea edx, [ebp - 0x14]
push edx
call fcn.0041b8b0
mov ebx, 9
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x41d5e5
lea eax, [ebp + 0x14]
push eax
mov ecx, 0x4abbbc
call fcn.0041be20
lea eax, [ebp + 0x14]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00417620
mov byte [ebp - 4], bl
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 0x41d62b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41d62b
cmp eax, 2
jne 0x41d5fe
lea ecx, [ebp + 0x14]
push ecx
mov ecx, str.JPEG
call fcn.0041be20
mov byte [ebp - 4], 0xb
jmp 0x41d615
cmp eax, 3
jne 0x41d659
lea edx, [ebp + 0x14]
push edx
mov ecx, 0x4abbd0
call fcn.0041be20
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x14]
lea edi, [ebp - 0x14]
call fcn.00417620
lea eax, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.0041b950
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov esi, ecx
test edi, 0xffff0000
jne 0x41d67f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push eax
mov edx, edi
call fcn.0041d730
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x41d4e3
mov edi, dword [ebp + 0xc]
mov dword [edi], esi
lea eax, [ebp - 0x14]
mov dword [edi + 4], esi
call fcn.0041b950
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 + 0x14]
push ecx
call fcn.0041b8b0
push edi
push str.IMG__s
lea edi, [ebp + 0x14]
mov byte [ebp - 4], 0xd
call fcn.00417250
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 8
push edi
push edx
mov edx, dword [ebp + 0x14]
mov ecx, esi
call fcn.0041d730
mov byte [ebp - 4], bl
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 0x41d6d1
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 0x41d6f7
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], esi
mov dword [eax + 4], 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