Function at 0x476050
Capabilities:
Check if file exists
Get common file path
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9128
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x22c], ebx
call fcn.0042f8b0
mov ecx, eax
test ecx, ecx
je 0x47623a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x4de194
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.0040f8a0
test al, al
jne 0x475ec7
push 0
push 0x4de194
lea ecx, [ebp - 0x228]
call fcn.0040e030
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.00478a70
mov edx, dword [0x517700]
add esp, 4
mov edi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x475f0d
nop dword [eax]
cmp dword [ecx + 0x10], edi
jge 0x475efa
mov ecx, dword [ecx + 8]
jmp 0x475efe
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x475ef0
cmp eax, edx
je 0x475f0d
cmp edi, dword [eax + 0x10]
jge 0x475f0f
mov eax, edx
cmp edx, eax
je 0x475f22
add eax, 0x14
lea ecx, [ebp - 0x228]
push eax
call fcn.0040f500
mov esi, dword [ebp - 0x228]
cmp dword [esi - 0xc], 0
jne 0x475f8f
call fcn.0042f8b0
mov ecx, eax
test ecx, ecx
je 0x476244
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4de194
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040f8a0
test al, al
jne 0x475f69
push 0
push 0x4de194
mov ecx, ebx
call fcn.0040e030
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475f88
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x47621e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x221]
call fcn.0046d6d0
lea eax, [edi - 3]
mov byte [ebp - 4], 3
or ebx, 0xffffffff
cmp eax, 0x3d
ja case.0x475fbb.4
movzx eax, byte [eax + 0x476268]
jmp dword [eax*4 + 0x476258]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x221]
call fcn.0046e470
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.0040f500
mov edx, dword [ebp - 0x22c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x476005
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x221]
call fcn.00473a90
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.0040f500
mov edx, dword [ebp - 0x22c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x476048
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
jmp case.0x475fbb.4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x64006c
mov dword [ebp - 0x14], 0x73
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476064
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e030
push 0xd
push str.Wallpaper.set
lea ecx, [ebp - 0x230]
call fcn.0040e030
mov esi, dword [ebp - 0x228]
jmp case.0x475fbb.4
push 0xa
push str.HaloWP.set
lea ecx, [ebp - 0x230]
call fcn.0040e030
cmp edi, 0x3f
je 0x4760cd
cmp edi, 0x43
je 0x4760cd
cmp edi, 0x42
je 0x4760cd
cmp edi, 0x44
je 0x4760cd
cmp edi, 0x45
mov edi, 0x1a
jne 0x4760d2
mov edi, 0x1c
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0047cba0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push esi
push eax
call edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47612a
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push eax
call edi
call fcn.0042f8b0
mov ecx, eax
test ecx, ecx
je 0x47624e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040f8a0
test al, al
jne 0x4761a2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476180
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040e030
mov edi, dword [ebp - 0x22c]
add edi, 0xfffffff0
mov byte [ebp - 4], 7
push edi
call fcn.0040ce60
mov ecx, dword [ebp - 0x234]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 3
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4761db
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4761fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x476218
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ce10
push 0x80004005
call fcn.0040ce10
push 0x80004005
call fcn.0040ce10
ret 0x475f