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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc0a8
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4f016c]
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.0040d860
mov ecx, eax
test ecx, ecx
je 0x46ba4a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x4cf63c
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.0040cf60
test al, al
jne 0x46b6c7
push 0
push 0x4cf63c
lea ecx, [ebp - 0x228]
call fcn.0040e260
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.0046d880
mov edx, dword [0x51d1b4]
add esp, 4
mov edi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x46b70d
nop dword [eax]
cmp dword [ecx + 0x10], edi
jge 0x46b6fa
mov ecx, dword [ecx + 8]
jmp 0x46b6fe
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x46b6f0
cmp eax, edx
je 0x46b70d
cmp edi, dword [eax + 0x10]
jge 0x46b70f
mov eax, edx
cmp edx, eax
je 0x46b722
add eax, 0x14
lea ecx, [ebp - 0x228]
push eax
call fcn.00409c90
mov esi, dword [ebp - 0x228]
cmp dword [esi - 0xc], 0
jne 0x46b78f
call fcn.0040d860
mov ecx, eax
test ecx, ecx
je 0x46ba54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4cf63c
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040cf60
test al, al
jne 0x46b769
push 0
push 0x4cf63c
mov ecx, ebx
call fcn.0040e260
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b788
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x46ba2e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x221]
call fcn.0045d1a0
lea eax, [edi - 3]
mov byte [ebp - 4], 3
or ebx, 0xffffffff
cmp eax, 0x3d
ja case.0x46b7bb.4
movzx eax, byte [eax + 0x46ba78]
jmp dword [eax*4 + 0x46ba68]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x221]
call fcn.0045ccd0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00409c90
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 0x46b805
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.004695d0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.00409c90
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 0x46b848
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
jmp case.0x46b7bb.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 0x46b864
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e260
push 0xd
push str.Wallpaper.set
lea ecx, [ebp - 0x230]
call fcn.0040e260
mov esi, dword [ebp - 0x228]
jmp case.0x46b7bb.4
push 0xa
push str.HaloWP.set
lea ecx, [ebp - 0x230]
call fcn.0040e260
cmp edi, 0x3f
je 0x46b8e1
cmp edi, 0x43
je 0x46b8e1
cmp edi, 0x42
je 0x46b8e1
cmp edi, 0x44
je 0x46b8e1
cmp edi, 0x45
je 0x46b8e1
cmp edi, 0x47
je 0x46b8e1
cmp edi, 0x48
je 0x46b8e1
cmp edi, 0x49
je 0x46b8e1
cmp edi, 0x4a
mov edi, 0x1a
jne 0x46b8e6
mov edi, 0x1c
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a5110
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 0x46b93e
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.0040d860
mov ecx, eax
test ecx, ecx
je 0x46ba5e
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.0040cf60
test al, al
jne 0x46b9b2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b990
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040e260
mov edi, dword [ebp - 0x22c]
add edi, 0xfffffff0
mov byte [ebp - 4], 7
push edi
call fcn.0040d0a0
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 0x46b9eb
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 0x46ba0c
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 0x46ba28
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.00482dad
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040cf40
push 0x80004005
call fcn.0040cf40
push 0x80004005
call fcn.0040cf40
ret 0x46b7